|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Resident AMD enthusiast
Join Date: Jul 2001
Location: Kansas
Posts: 1,445
|
animated buttons
so I got some script to animate my buttons. Basically, I want them to change from white, to blue when there is a link.
I got this to work using a bit of java code from this site: http://www.echoecho.com/jsbuttons02.htm But when I tried to add more buttons, I cant get the buttons to be animated... I have uploaded the non-working .html and all the .jpg images, perhaps someone could take a look and see if they can spot any problems? The link for my site is: http://users.pld.com/djohns TIA, L J
__________________
Main: Gigabyte GA-770T USB3 - Phenom II 840 - 4GB DDR3 - Radeon 5750 1GB HTPC: MSI K9N6PGM2-V2 - Athlon II 250 - 4GB DDR2 - Radeon 5670 512MB HTPC: Zotac GeForce 6100E-E - Athlon X2 5800+ - 4GB DDR2 "Play a Windows CD backwards and you'll hear satanic voices, thats nothing, play it forwards and it installs Windows." |
|
|
|
|
|
#2 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
First I the javascript should be between your <head> & </head> tags. More than likely the error in your script is because you are calling a function that doesn't exist. Look at the source of this site that I did a while back. It uses pretty standard rollovers.
|
|
|
|
|
|
#3 |
|
Resident AMD enthusiast
Join Date: Jul 2001
Location: Kansas
Posts: 1,445
|
Since it will be difficult to re-write the code for your method, I'm certain my method works. Here is a page using my method for proof: http://www.echoecho.com/samplejavabuttons.htm
I have loked over the source, and I have no idea where the error could be- I don't want to have to re-write a lot of html unless I have to. L J |
|
|
|
|
|
#4 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
It looked like the problem was that the script seemed to be missing something. That, and any java scripts that you use in the webpage need to be inserted somewhere between the < head > < /head > tags.
I replaced your script with similar script I've used in the past on some of my webpages.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
|
|
#5 |
|
Resident AMD enthusiast
Join Date: Jul 2001
Location: Kansas
Posts: 1,445
|
Thanks a lot force flow, I would have never expected someone to do that much work.
L J |
|
|
|
|
|
#6 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
You're welcome. It didn't take as long as you would think.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|