Results 1 to 3 of 3

Thread: Hardcoded color in the "make this my homepage" script

  1. #1
    Join Date
    Oct 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Hardcoded color in the "make this my homepage" script

    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.

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Change the last part of the code to this:

    Code:
    <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
    Last edited by cr3ative; 10-02-2004 at 08:24 AM. Reason: Error.
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Oct 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks cr3ative

    It works perfectly. Thanks so much. Nigel.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •