Jump to content

JAVASCRIPT HELP PLEASE!!!!!!!!!


sphe

Recommended Posts

Please help me out: I have some javascript for rollovers and drop down menus on my web page, and when I load my page on explorer, it asks some funny question like must it "ALLOW BLOCKED ACTIVE CONTENT..."

 

I dont have such a problem with firefox and other browsers.

 

Is there a way of hiding the script, and still running it on explorer just like in the other browsers?

Please help, pleeeeeeeeeeze!

Link to comment
Share on other sites

Just a really quick comment... are you looking at a local site on your computer, or a site that you have uploaded to the web? Its been a while since I've run into this, but I seem to remember getting that error when I ran local javascript -- viewing a site that was saved on my local computer, rather than accessing a web site. When the site was uploaded to the server and viewed live, the issue went away.

 

Just a quick guess... if you want us to look at this more, you'll probably need to post a link to the site or a the code you are using.

Link to comment
Share on other sites

I am running a local site, haven't uploaded.Here's part of the the code.

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

 

<html>

<head>

<title>Philani MaSwati Charity Organization</title>

<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">

<link href="newstyle.css" rel="stylesheet" type="text/css">

 

<script LANGUAGE="JavaScript">

<!-- Begin

 

image1 = new Image();

image1.src = "images/home1.gif";

 

image2 = new Image();

image2.src = "images/jobs1.gif";

 

// End -->

</script>

</head>

Link to comment
Share on other sites

Just a really quick comment... are you looking at a local site on your computer, or a site that you have uploaded to the web? Its been a while since I've run into this, but I seem to remember getting that error when I ran local javascript -- viewing a site that was saved on my local computer, rather than accessing a web site. When the site was uploaded to the server and viewed live, the issue went away.

The first thing I'd do is check the above issue. If you don't have a place to upload it at the moment, ignore this issue for now, and come back to it when you are nearer to launching the website.

 

Based on your code above, I'm not seeing anything that should cause an issue, so I'm guessing it has to do with the local website issue I was talking about.

Link to comment
Share on other sites

rather, the full code:

 

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

 

<html>

<head>

<title>Philani MaSwati Charity Organization</title>

<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">

<link href="newstyle.css" rel="stylesheet" type="text/css">

 

<script LANGUAGE="JavaScript">

<!-- Begin

 

image1 = new Image();

image1.src = "images/home1.gif";

 

image2 = new Image();

image2.src = "images/jobs1.gif";

 

image3 = new Image();

image3.src = "images/music1.gif";

 

image4 = new Image();

image4.src = "images/cars1.gif";

 

image5 = new Image();

image5.src = "images/property1.gif";

 

image6 = new Image();

image6.src = "images/tenders1.gif";

 

image7 = new Image();

image7.src = "images/food1.gif";

 

image8 = new Image();

image8.src = "images/fashion1.gif";

 

image9 = new Image();

image9.src = "images/food1.gif";

 

image10 = new Image();

image10.src = "images/restaurants1.gif";

 

image11 = new Image();

image11.src = "images/pub1.gif";

 

 

// End -->

</script>

</head>

 

<body>

<div>

<div id="header">

<img src="images/header.gif">

</div>

 

<div id="navigation">

<img src="images/anim_head.gif"></img>

</div>

 

 

<div id="navigation2">

<img src="images/spacer.gif"></img>

 

<a href="home.html" onmouseover="image1.src='images/home1.gif';"

onmouseout="image1.src='images/home.gif';">

<img name="image1" src="images/home.gif" border=0></a>

 

<img src="images/spacer.gif"></img>

 

<a href="jobs.html" onmouseover="image2.src='images/jobs1.gif';"

onmouseout="image2.src='images/jobs.gif';">

<img name="image2" src="images/jobs.gif" border=0></a>

 

<img src="images/spacer.gif"></img>

 

<a href="music.html" onmouseover="image3.src='images/music1.gif';"

onmouseout="image3.src='images/music.gif';">

<img name="image3" src="images/music.gif" border=0></a>

 

<img src="images/spacer.gif"></img>

 

<a href="cars.html" onmouseover="image4.src='images/cars1.gif';"

onmouseout="image4.src='images/cars.gif';">

<img name="image4" src="images/cars.gif" border=0></a>

 

<img src="images/spacer.gif"></img>

 

<a href="property.html" onmouseover="image5.src='images/property1.gif';"

onmouseout="image5.src='images/property.gif';">

<img name="image5" src="images/property.gif" border=0></a>

 

<img src="images/spacer.gif"></img>

 

<a href="tenders.html" onmouseover="image6.src='images/tenders1.gif';"

onmouseout="image6.src='images/tenders.gif';">

<img name="image6" src="images/tenders.gif" border=0></a>

 

<img src="images/spacer.gif"></img>

 

<a href="fashion.html" onmouseover="image8.src='images/fashion1.gif';"

onmouseout="image8.src='images/fashion.gif';">

<img name="image8" src="images/fashion.gif" border=0></a>

 

<img src="images/spacer.gif"></img>

 

<a href="pub.html" onmouseover="image10.src='images/pub1.gif';"

onmouseout="image10.src='images/pub.gif';">

<img name="image10" src="images/pub.gif" border=0></a>

 

<img src="images/spacer.gif"></img>

 

<a href="food.html" onmouseover="image7.src='images/food1.gif';"

onmouseout="image7.src='images/food.gif';">

<img name="image7" src="images/food.gif" border=0></a>

 

<img src="images/spacer.gif"></img>

 

<a href="restaurants.html" onmouseover="image9.src='images/restaurants1.gif';"

onmouseout="image9.src='images/restaurants.gif';">

<img name="image9" src="images/restaurants.gif" border=0></a>

 

</div>

 

 

<div id="majorzone">

<h2>xxxxxxxxxxxxxxxx</h2>

</div>

 

<div id="minorzone">

<h2> xxxxxxxxxxxxxxx</h2>

</div>

 

 

 

 

</div>

</body>

</html>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...