SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Non-Member JAMJAMMO's Avatar
    Join Date
    Dec 2000
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i need some advice and superb opinions.
    i really like to use those fancy-shmancy drop down menus featured on Dynamic Drive like the one MSN has on their home page and to make it easier on those people who dont use the coolest and latest browser (IE5+), i include some simple text navigation at the bottom of each page. this text navigation is called upon using an 'external.js' script like this:
    Code:
    <SCRIPT LANGUAGE="JavaScript" src="banner.js"></script>
    the file that is call is like this:
    Code:
    <!-- Begin
    document.write('<a href="index.html">HOME</a> '); 
    document.write('<a href="rides.html">RIDES</a> ');
    document.write('<a href="links.html">LINKS</a> '); 
    document.write('<a href="contact.html">CONTACT</a> '); 
    document.write('<a href="gbook.html">GUESTBOOK</a> '); 
    document.write('<a href="copyright.html">COPYRIGHT</a> '); 
    // End -->
    am i safe using this for all browsers?

  2. #2
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the browser supports document.write statements (and pretty much all JavaScript-capable browsers suppors them) then it should be not a problem, as the browser treats the js file as if it was part of the page.
    My 2 Cents (or is that 2.2 Cents including GST?)

  3. #3
    Non-Member JAMJAMMO's Avatar
    Join Date
    Dec 2000
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    super.


    thanks!!


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
  •