Set us your homepage code

Discussion in 'HTML & Website Design' started by Bondat, Apr 20, 2007.

  1. #1
    I'm trying lot of codes that are available in the internet and still no luck. Could anyone give me the code?

    Looking for "Set us your homepage code"

    Reps for someone who could help me. Thanks!
     
    Bondat, Apr 20, 2007 IP
  2. Vetsin

    Vetsin Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    
    <!-- ONE STEP TO INSTALL SET HOMEPAGE LINK:
    
      1.  Copy the coding into the BODY of your HTML document  -->
    
    <!-- STEP ONE: Paste this code into the BODY of your HTML document  -->
    
    <BODY>
    
    <SCRIPT LANGUAGE="JavaScript">
    
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    
    <!-- Begin
    // If it's Internet Explorer, use automatic link
    // Be sure to change the "http://www.YourWebSiteHere.com\"
    // to the URL you want them to bookmark.
    if (document.all){
      document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.YourWebSiteHere.com\');">');
      document.write('<font size="5" color=6699FF face=arial><B>Click Here to Make My Web Page Your Homepage</B></font></a>');
    }
    
    // If it's Netscape 6, tell user to drag link onto Home button
    // Be sure to change the "http://www.YourWebSiteHere.com\"
    // to the URL you want them to bookmark.
    else if (document.getElementById){
      document.write('<a href="http://www.YourWebSiteHere.com">Drag this link onto your Home button to make this your Home Page.</a>');
    }
    
    // If it's Netscape 4 or lower, give instructions to set Home Page
    else if (document.layers){
      document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
    }
    
    // If it's any other browser, for which I don't know the specifications of home paging, display instructions
    else {
      document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
    }
    //  End -->
    </script>
    
    <p><center>
    <font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
    by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
    </center><p>
    
    <!-- Script Size:  2.11 KB -->
    Code (markup):
     
    Vetsin, Apr 20, 2007 IP
  3. Bondat

    Bondat Peon

    Messages:
    2,397
    Likes Received:
    217
    Best Answers:
    0
    Trophy Points:
    0
    #3
    LOL, by doing Google search I found this one as well. :D Not working for me. Thanks anyway for the help.

    Anyone?
     
    Bondat, Apr 20, 2007 IP
  4. Vetsin

    Vetsin Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Probably because its old, the above doesn't account for firefox.
    This seems to do it for IE though:
    onclick="this.setHomePage(\'http://www.YourWebSiteHere.com\');"
     
    Vetsin, Apr 20, 2007 IP
  5. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Just go to a page that has the feature and press ctrl+u to view the source. Chances are they cut and paste it to so you'll be able to spot the releavnt code ;)
     
    Valve-Hosting, Apr 20, 2007 IP
  6. costin_trifan

    costin_trifan Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    follow this link. ( _http://jasp-costin.blogspot.com/2007/04/set-as-home-page.html )

    You'll find there the complete source code.
    That will work.
     
    costin_trifan, Apr 20, 2007 IP
  7. asfi

    asfi Peon

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Check this SiteSpinner tool in the google or download it from download.com.You no need write the code whatever you want just drag and drop.Itwill create code and take this code put where you want.
     
    asfi, Apr 20, 2007 IP
  8. Josiah

    Josiah Banned

    Messages:
    438
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #8
    hmm this kinda stuff is still confusing me...

    You may have guessed I'm new to HTML :) good thing is I atleast know more than I used to

    Can anyone tell me a little more about cellpadding and borders?
     
    Josiah, Apr 20, 2007 IP