script type/script language
This is going to be hard for me to explain but here goes.
I am using a javascript menu on a site that I am working on.
I downloaded it from Dynamic Drive. (HVMenu)
http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm
You have to place these three scripts in your code.
*script type='text/javascript'*
function Go(){return}
*/script*
*script type='text/javascript' src='exmplmenu_var.js'* */script*
*script type='text/javascript' src='menu_com.js'* */script*
My question is...if I add the below along with it will it help
more browsers be able to see the menu??
*script language='text/javascript'*
function Go(){return}
*/script*
*script language='text/javascript' src='exmplmenu_var.js'* */script*
*script language='text/javascript' src='menu_com.js'* */script*
It is my understanding from reading about cross browser compatibility that
if you have *script type* then you should also put *script language* Is this correct?
I added to the code so that each has a script TYPE and LANGUAGE
and it seems to be working for me in IE 5.0 so far.
I have already posted my site under the web site critique area of this board
but here is the temporary URL if you want to peek at the menu.
virtualgarphiti.net/template2.html.
disastermaster
Abhishek Reddy posted this at 06:08 — 23rd July 2001.
He has: 3,348 posts
Joined: Jul 2001
hi,
i've read somewhere that older versions of browser do need the text/javascript bit, but it needs to be in "type" not language. similarly, in style tags, usually one inserts type="text/css" or in the meta headers content: text/html etc.
in the language property you could use "JavaScript". but i dowbt that helps much.
anyway, i believe the correct url is:
http://www.virtualgraphiti.net/template2.html
there was a typo :D
Jack Michaelson posted this at 12:56 — 23rd July 2001.
He has: 1,733 posts
Joined: Dec 1999
<script language="javascript" type="text/javascript" src="YourUrl.js" >
where maroon text is optional
disaster-master posted this at 20:51 — 24th July 2001.
She has: 2,154 posts
Joined: May 2001
To Abhishek: I did type in the wrong URL. Thanks for catching that.
To Jack: I think I'll will try one that and see how it works.
disastermaster
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.