odd html behaviour...

Sharky Forums


Results 1 to 3 of 3

Thread: odd html behaviour...

  1. #1
    Goldfish qwe's Avatar
    Join Date
    Sep 2002
    Location
    London
    Posts
    69

    Question odd html behaviour...

    I'm trying to import a javascript file into a webpage. the code I use is this:

    <html><title>toolbarpage</title>
    <STYLE TYPE="text/css">
    <!--
    @import url(toolbar.css);
    //-->
    </STYLE>

    <script language="JavaScript" src="toolbar.js"
    type="text/javascript"></script>
    </head>

    it's not the javascript code because it works fine when I put the code into the webpage, and I don't think that it's the call because if I change the javascript file name to a different one it works then. but if I use what I put above then I ge this message:

    Line: 5
    Char: 9
    Error: Expected';'
    Code: 0

    what I don't understand is that, looking at the code, it refers to:

    Line 01: <BASE HREF="http://www.angelfire.lycos.com/wy2/fuzzyguy/">
    Line 02: <html><title>toolbarpage</title>
    Line 03:
    Line 04: <STYLE TYPE="text/css">
    Line 05: <!--
    Line 06: @import url(toolbar.css);
    Line 07: //-->
    Line 08: </STYLE>
    Line 09:
    Line 10: <script language="JavaScript" src="toolbar.js"
    Line 11: type="text/javascript"></script>
    Line 12:
    Line 13:
    Line 14: </head>

    Anyone have any ideas?
    Possesions never meant anything to me,
    I'm not crazy.
    Well that's not true I have a bed,
    and a guitar and a dog named dog.

  2. #2
    Goldfish e1v!$'s Avatar
    Join Date
    Aug 2001
    Location
    Mons,Olympus,Mars
    Posts
    56
    try something like this

    <script type="text/javascript" src="scripts/floatingindex/asciitobinary.js"></script>
    Love More,
    Hate Less
    2.6C(@2.8), P4C800-E Delux, 2x512 Crucial 3200, 9700 Pro Ultimate, ,3Com 990c, 120JB * 2, EG651P, CNPS7000-AlCu, Lian-Li 65B (cooler master fans), Audigy2 EX, MX700

  3. #3
    Goldfish qwe's Avatar
    Join Date
    Sep 2002
    Location
    London
    Posts
    69

    thank

    I've no idea why it works but it does nice one
    Possesions never meant anything to me,
    I'm not crazy.
    Well that's not true I have a bed,
    and a guitar and a dog named dog.

Posting Permissions

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