PDA

View Full Version : Hardcoded color in the "make this my homepage" script



nigelbarham
10-01-2004, 06:48 PM
Hi:

In the "make this your homepage" script, the color is hardcoded.

http://www.dynamicdrive.com/dynamicindex9/addhome.htm

How can I make it a regular link, so it's blue unless someone clicks on it,
when it becomes purple. Thanks so much for your time.

Nigel.

cr3ative
10-02-2004, 09:24 AM
Change the last part of the code to this:



<a href="url#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://dynamicdrive.com');">Click here to

make Dynamic Drive your default homepage</a>


This then does the same thing, but has the desired colour effect. Remember to replace url# with your website, followed by #. This is where the user will be taken after bookmarking. Remember to use http:// in front of the URL also.

cr3ative

nigelbarham
10-02-2004, 09:34 PM
It works perfectly. Thanks so much. Nigel.