[advanced search]
Results from the most recent live auction are here.
23 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 09-27-2003, 04:19 PM   · #1
Smilin' Jack
NamePros Member
 
Trader Rating: (0)
Join Date: Sep 2003
Posts: 46
NP$: 68.00 (Donate)
Smilin' Jack is an unknown quantity at this point
Mouseover Buttons

I am having a problem making multiple rollover buttons work.
As displayed on: www.equipmentpolice.com/home.htm,

I am able to get the first two buttons to work.
Can't figure how to do the next four below.

Thanks,
Jack


Please register or log-in into NamePros to hide ads
__________________
"Never let the future disturb you. You will meet it, if you have to, with the same weapons of reason which today arm you against the present".
- Marcus Aurelius
Smilin' Jack is offline   Reply With Quote
Old 09-27-2003, 09:17 PM   · #2
web guru
NamePros Member
 
Trader Rating: (0)
Join Date: Jul 2003
Posts: 120
NP$: 185.00 (Donate)
web guru is an unknown quantity at this point
OK only had a breif look at your code but heres my cod efor mouse over buttons maybe you could use it,

Code:
<script language="JavaScript" type="text/javascript"> <!-- if (document.images){ //proload your images homeOne = new Image(); homeOne.src = "images/homeOne.gif" ; homeTwo = new Image() ; homeTwo.src = "images/homeTwo.gif" ; } function buttondown( buttonname ) { if (document.images) { document[ buttonname ].src = eval( buttonname + "Two.src" ); document.icon.src = "images/"+buttonname+"Icon.gif"; } } function buttonup ( buttonname ) { if (document.images) { document[ buttonname ].src = eval( buttonname + "One.src" ); document.icon.src = "images/mainIcon.gif"; } } // --> </script>


Then to get it to work do the following

Code:
<a href="home.html" onMouseOver="buttondown( 'home' );" onMouseOut="buttonup ( 'home');"> **Linke Here**</a>
web guru is offline   Reply With Quote
Old 09-28-2003, 01:42 AM   · #3
Smilin' Jack
NamePros Member
 
Trader Rating: (0)
Join Date: Sep 2003
Posts: 46
NP$: 68.00 (Donate)
Smilin' Jack is an unknown quantity at this point
Mouseover Buttons Reply

Thanks Web,
So what do I use to activate 4 buttons?
Do they all have to have different names even if it is the same images being used for all four?
Say, are you anywhere near Ennis?

Jack
__________________
"Never let the future disturb you. You will meet it, if you have to, with the same weapons of reason which today arm you against the present".
- Marcus Aurelius
Smilin' Jack is offline   Reply With Quote
Old 09-28-2003, 03:57 PM   · #4
adam_uk
Senior Member
 
Trader Rating: (17)
Join Date: May 2003
Posts: 2,211
NP$: 6170.25 (Donate)
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
Breast Cancer
Code:
<a href=content.php?p=contact><img src=/images/contact_off.gif border=0 OnMouseOver=this.src="/images/contact_on.gif" OnMouseOut=this.src="/images/contact_off.gif"></a>
adam_uk is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Hunting Moon EscrowDNS EscrowDNS
Advertise your business at NamePros
All times are GMT -7. The time now is 07:25 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0