Click to See Complete Forum and Search --> : odd html behaviour...


qwe
09-14-2003, 08:59 AM
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?

e1v!$
09-14-2003, 09:50 AM
try something like this

<script type="text/javascript" src="scripts/floatingindex/asciitobinary.js"></script>

qwe
09-14-2003, 11:12 AM
I've no idea why it works but it does nice one