![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So Fucking Banned
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
|
onmouseout="window.status=''; return true"
should be onmouseout="window.status=''; return true;" |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Banned
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Feed me coffee.
Industry Role:
Join Date: Sep 2001
Location: Massafuckingchusetts
Posts: 1,128
|
Stick this in your BODY.
ONLOAD="window.defaultStatus='YOUR MESSAGE'" |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Drunk and Unruly
Join Date: Jan 2002
Location: Hollywood
Posts: 22,712
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
So Fucking Banned
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
|
here is an example..
Enjoy ![]() <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 ![]() </BODY> </HTML> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
So Fucking Banned
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
|
Thats it?
No replies? no remarks? No complaints? no THANKS????? Damn ![]() People nowadays are greatful ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
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...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
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! ![]() 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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
Nevermind, I know why it did not work now.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Apr 2002
Posts: 9,736
|
So tell the rest of us!
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
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! ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
No Refunds Issued.
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
|
HQ - leave your ICQ please, i need to talk to you
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
Quote:
94968434 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Jan 2001
Posts: 3,539
|
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! ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |