GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   mouseover status bar tricks (https://gfy.com/showthread.php?t=73780)

HQ 08-25-2002 12:52 PM

mouseover status bar tricks
 
I Need some help with this. I have two mouseover codes that do not work together...


I use this code in my A HREF tag to create a blind mouseover status bar message:

onmouseover="window.status='http://www.whatever.com/'; return true" onmouseout="window.status=''; return true"

I also use this code in my BODY tag to globally set the status bar.

onmouseover="window.status='BLAH BLAH BLAH'; return true"

The bottom code overrules the top code, and I want the opposite of that. Any ideas?

XXXManager 08-25-2002 01:45 PM

onmouseout="window.status=''; return true"
should be
onmouseout="window.status=''; return true;"

XXXManager 08-25-2002 01:47 PM

But basically I dont get what you want...

onmouseover="window.status='http://www.whatever.com/'; return true;"
onmouseout="window.status=''; return true;"

this code makes sure http://www.whatever.com/ will show up every time you are "OVER" the item (whtever item it is) and whenever you leave this object it empties the status line.

What do you want to do?

HQ 08-25-2002 02:05 PM

What I want to do is have a constant status bar message that hides all my blind links, but for sponsors have the real url show up.

I can do the first thing by placing that mouseover code in the BODY tag, but as soon as I do that, the mousever code in the A HREF tag does not work.

See what I mean?

DX 08-25-2002 02:53 PM

Stick this in your BODY.

ONLOAD="window.defaultStatus='YOUR MESSAGE'"

Pornwolf 08-25-2002 03:02 PM

Sounds like someone needs to stop playing Jedi Power Battles and start studying web design.

TD Scripts
Script School
TD's Script School

Surf those and The Force will be stronger in you.

XXXManager 08-25-2002 03:15 PM

here is an example..
Enjoy :thumbsup

<HTML>
<BASEFONT FACE="Verdana">
<SCRIPT>
var OrigStatusBar = 'Im the constant status bar ;) Curtsey of XXXManager.com';
var CurrentStatusBar= OrigStatusBar;
</SCRIPT>
<BODY onmouseover="window.status=CurrentStatusBar; return(true);">
This is just a link<BR>
<A HREF="http://www.tgplay.com">link</A></BR>
<BR>
But this is a sponsor link<BR>
<A HREF="http://www.xxxmanager.com/" onmouseover="CurrentStatusBar='http://www.xxxmanager.com/';

window.status=CurrentStatusBar; return true;" onmouseout="CurrentStatusBar=OrigStatusBar; window.status=CurrentStatusBar;

return true;">Curtsey of your sponsor :) XXXManager.com</A>
</BODY>
</HTML>

XXXManager 08-25-2002 03:47 PM

Thats it?
No replies? no remarks? No complaints? no THANKS?????
Damn :ak47:
People nowadays are greatful :( :glugglug

HQ 08-25-2002 07:49 PM

Sorry, my Internet is running at less than 2k/sec... When I can actually use the Internet I'll check your solution and reply... plus I've almost completed Jedi Knight 2... just one last boss to beat...

HQ 08-26-2002 05:46 AM

Finally, my reply:


XXXManager,

"true" or "true;" did not seem to make a difference, but I put the semicolon anyway.


DX,

ONLOAD="window.defaultStatus='YOUR MESSAGE'" does not work for what I want to do. It places "YOUR MESSAGE" in the status bar AND it does not interfere with the mouseover on the sponsor links, however, it does not place "YOUR MESSAGE" when I mouseover a blind link on my site. I could use mouseover code on all my blind links, but there must be a better way that uses up less bandwidth than that.


XXXManager,

Your code works! :) Thanks!!!

For some reason it does not work if I take out the OrigStatusBar and CurrentStatusBar variables and set the status bar directly. Any idea why?

HQ 08-26-2002 05:50 AM

Nevermind, I know why it did not work now.

chodadog 08-26-2002 05:53 AM

So tell the rest of us! :winkwink:

HQ 08-26-2002 07:49 AM

Quote:

Originally posted by chodadog
So tell the rest of us! :winkwink:
Haha, yeah I should!

In XXXManager's code, I forgot that he did this:

<BODY onmouseover="window.status=CurrentStatusBar; return(true);">

So the mouseover of the body of the web page calls the CurrentStatusBar variable. It has to be a variable because it HAS to change whenever a mouseover of a sponsor occurs. The reason for this is becuase the BODY mouseover overrides A HREF mouseovers. Therefore, you have to instruct the A HREF mouseover to change the BODY mouseover.

Makes sense? Let me know if I'm wrong.


Also, DX was right too. However I did not want to use his code becuase he code requires a mouseover over EVERY blind link where as XXXManager's code only requires mouseovers over sponsor links.


Hope that clears it up! :)

DarkJedi 08-26-2002 08:07 AM

HQ - leave your ICQ please, i need to talk to you

HQ 08-26-2002 08:56 AM

Quote:

Originally posted by DarkJedi
HQ - leave your ICQ please, i need to talk to you
Shit, my ICQ # is not showing up in my profile. Anyone else have that problem?

94968434

HQ 08-26-2002 09:15 AM

Shit, let me re-post my explanation as I accidentally typed out HTML code which was not displayed:

------------------------------


Haha, yeah I should!

In XXXManager's code, I forgot that he did this:

BODY onmouseover="window.status=CurrentStatusBar; return(true);"

So the mouseover of the body of the web page calls the CurrentStatusBar variable. It has to be a variable because it HAS to change whenever a mouseover of a sponsor occurs. The reason for this is becuase the BODY mouseover overrides A HREF mouseovers. Therefore, you have to instruct the A HREF mouseover to change the BODY mouseover.

Makes sense? Let me know if I'm wrong.


Also, DX was right too. However I did not want to use his code becuase he code requires a mouseover over EVERY blind link where as XXXManager's code only requires mouseovers over sponsor links.


Hope that clears it up! :)


All times are GMT -7. The time now is 09:57 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123