![]() |
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? |
onmouseout="window.status=''; return true"
should be onmouseout="window.status=''; return true;" |
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? |
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? |
Stick this in your BODY.
ONLOAD="window.defaultStatus='YOUR MESSAGE'" |
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. |
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> |
Thats it?
No replies? no remarks? No complaints? no THANKS????? Damn :ak47: People nowadays are greatful :( :glugglug |
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...
|
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? |
Nevermind, I know why it did not work now.
|
So tell the rest of us! :winkwink:
|
Quote:
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! :) |
HQ - leave your ICQ please, i need to talk to you
|
Quote:
94968434 |
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