Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-12-2004, 08:45 PM   #1
Resident AMD enthusiast
 
Colonel Sanders's Avatar
 
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."
Colonel Sanders is offline   Reply With Quote
Old 02-12-2004, 09:38 PM   #2
Staff
Premium Member
 
mairving's Avatar
 
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.
mairving is offline   Reply With Quote
Old 02-12-2004, 10:35 PM   #3
Resident AMD enthusiast
 
Colonel Sanders's Avatar
 
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
Colonel Sanders is offline   Reply With Quote
Old 02-13-2004, 03:14 PM   #4
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
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.
Attached Files
File Type: txt website.txt (4.4 KB, 24 views)
__________________
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.
Force Flow is offline   Reply With Quote
Old 02-13-2004, 03:47 PM   #5
Resident AMD enthusiast
 
Colonel Sanders's Avatar
 
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
Colonel Sanders is offline   Reply With Quote
Old 02-13-2004, 03:56 PM   #6
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
You're welcome. It didn't take as long as you would think.
Force Flow is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:46 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2