PDA

View Full Version : Dear sir



muhammad Taj
08-08-2005, 02:02 PM
my dear sir ,
i m a brand new student of Java Script.
please tell me a mathod how can i run an extenal java (*.js) file
in html page,specialy in <body> tag
I want to run a marquee in the top of page
Please help me .i,ll thank full to u.Dear sir

cr3ative
08-08-2005, 03:24 PM
<script src="url" type="text/javascript">

cr3

mwinter
08-08-2005, 03:35 PM
<script src="url" type="text/javascript">No closing tag?

Mike

cr3ative
08-08-2005, 04:24 PM
I didn't think that linked ones required it-

I presume you mean

<script src="url" type="text/javascript"/> or <script src="url" type="text/javascript"></script>
I got a slap on the wrists before for posting the latter of the two :)

cr3

Twey
08-08-2005, 05:22 PM
They do. And most browsers don't support self-closing script tags either - at least, not in XHTML1.0 Strict, the doctype I was using at the time. Firefox was the only one I found that did.