Announcement

Collapse
No announcement yet.

Bookmark this page for vbulletin...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • John Campbell
    started a topic Bookmark this page for vbulletin...

    Bookmark this page for vbulletin...

    I am having an issue with this code if anyone can help it would be great. I have it working if I put url's in specifically but I want this to work on the footer and use any page vb brings up. Here is my javascript. (This works in all browsers btw)

    HTML Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    if (document.all){
      document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(document.URL);">');
      document.write('<font size="-1"><B>Make ' parent.main_win.document.title ' Your Homepage</B></font></a>');
    }
    else if (document.getElementById){
      document.write('<font size="-1"><a href="'document.URL'">Drag this link onto your Home button to make this your Home Page.</a></font>');
    }
    else if (document.layers){
      document.write('<font size="-1"><b>Make ' parent.main_win.document.title ' 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.</font>');
    }
    else {
      document.write('<b>Make ' parent.main_win.document.title ' 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.</font>');
    }
    //  End -->
    </script>

Related Topics

Collapse

  • WhiskeyOSS
    Code Trashes Page
    by WhiskeyOSS
    Every time I use this it crashes the page it is on.. can anyone tell me what is wrong with it.

    HTML Code:
    <center><A HREF="http://www.teamsrgaming.com/forum"><font color = "#6600FF">
    ...
    Sat 13 Apr '13, 4:27am
Working...
X