Log in

View Full Version : Help with linking subdirectories using Rollover background-color button Script



pook
02-08-2011, 02:14 AM
I'm fairly new at this but have incorporated the Rollerover background tabs on a website. The problem I am having is in the coding to add my subdirectory links to the tabs. Any advice you can offer would be appreciated.

Example of code using:
<input type="button" value="Donations" class="initial2" onClick="jumpto2('')">
<input type="button" value="Past Events" class="initial2" onClick="jumpto2('')">
<input type="button" value="Directions" class="initial2" onClick="jumpto2('')">
<input type="button" value="Vendors" class="initial2" onClick="jumpto2('')”>
</form>

I've tried adding the http:/ url in parenthesis after "jumpto2 but it doesn't link at all.

HELP!!! Thanks.

Nile
02-08-2011, 02:33 AM
<input type="button" value="Google" onClick="window.location.href='http://google.com';">

pook
02-08-2011, 10:36 PM
Thanks Nile for the quick reply!
So I put in the correct code that you offered.....now Yahoo is telling me that the code is too long. Ever hear of this problem before?
Am I making a mistake by trying to link my sub-directories onto the main page? Thanks for any advice you can offer.

Nile
02-08-2011, 11:47 PM
No, but I don't know why it's telling you it's too long... Hmm. What are you using?

pook
02-08-2011, 11:54 PM
I am using Yahoo web design for my page. It's puzzling to me too! Thanks for all you time with helping me with this. What a pain! lol

pook
02-09-2011, 01:30 AM
Nile..would I be able to post my code here to you and see if you can see what I am doing wrong?

Nile
02-09-2011, 12:56 PM
Yeah, go for it.

pook
02-09-2011, 08:05 PM
Thanks so much. Here it goes...see what you think.


<P ALIGN="CENTER"><input type="button" value="Registrations" onClick="window.location.href='http://p8.hostingprod.com/@browncountycarshow.com/Registration/index1.html';">
<input type="button" value="Shriners" onClick="window.location.href='http://p8.hostingprod.com/@browncountycarshow.com/Shriners/index2.html';">
<input type="button" value="Donations" onClick="window.location.href=' http://p8.hostingprod.com/@browncountycarshow.com/Donations/index4.html';">
<input type="button" value="Past Events" onClick="window.location.href=' http://p8.hostingprod.com/@browncountycarshow.com/PastEvents/index6.html ';">
<input type="button" value="Directions" onClick="window.location.href='http: //p8.hostingprod.com/@browncountycarshow.com/Directions/index3.html';">
<input type="button" value="Vendors" onClick="window.location.href=' http://p8.hostingprod.com/@browncountycarshow.com/Vendors/index5.html';">
</form>

Nile
02-09-2011, 10:26 PM
Yeah, that definitely should work.
When pasting a code, please remember to use [code] tags. That includes [ html ], [ code ], and [ php ].

pook
02-09-2011, 10:29 PM
Thanks!! You are the best and have been a great help.
Pook

Nile
02-09-2011, 10:30 PM
No problem.