csr500
Programmer
- Sep 11, 2007
- 6
Good evening everyone
I am having some security issues with my code in Internet Explorer, everytime I go to my portfolio website I get that stupid IE banner, which says IE has blocked some content to prevent harm to your pc.
I will be honest my Javascript knowledge is basic at best and I found this piece of code which did what I wanted, basically have six or seven various images and on load an image was selected and used as a hyperlink to launch the site.
All of the code can be found
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" SP" "<html xmlns="<head>
<title>Cameron S Richmond | Webdesigner </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="The portfolio website for Cameron S Richmond, a London based web designer">
<meta name="keywords" content="Webdesign, web design, design, web, webdesigner, web, designer, HTML, HTML web, HTML web design, Flash, Flash web, Flash web design, Flash, Animation, Creative motion graphics, Graphics, Graphic Design, Design, 3D, 3D modelling, model 3D, London web design, Design London, Web design London, London Design Web, Cameron Richmond" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<h1>Cameron S Richmond</h1>
<h2>Webdesigner</h2>
<div id="image">
<a href="javascript:void(0);" onClick="window.open('flash.html', '','width=1270,height=826, scrollbars=auto');">
<script type="text/javascript" ><!--
function image() { };
image = new image();
number = 0;
// imageArray
image[number++] = "<img src='i/home/image_1.jpg' alt='Portfolio 1'>"
image[number++] = "<img src='i/home/image_2.jpg' alt='Portfolio 2'>"
image[number++] = "<img src='i/home/image_3.jpg' alt='Portfolio 3'>"
image[number++] = "<img src='i/home/image_4.jpg' alt='Portfolio 4'>"
image[number++] = "<img src='i/home/image_5.jpg' alt='Portfolio 5'>"
image[number++] = "<img src='i/home/image_6.jpg' alt='Portfolio 6'>"
image[number++] = "<img src='i/home/image_7.jpg' alt='Portfolio 7'>"
increment = Math.floor(Math.random() * number); document.write(image[increment]);
//-->
</script></a>
</div>
<p>System requirements: Broadband connection, 1280 x 1024 resolution, Flash 8 plug-in, IE6.0 or Firefox 1.5 </p>
</div>
</body>
</html>
Any help of reslving this matter, ie not getting tha banner would really really be very much appreciated.
Thanking everyone in advance
Cameron
I am having some security issues with my code in Internet Explorer, everytime I go to my portfolio website I get that stupid IE banner, which says IE has blocked some content to prevent harm to your pc.
I will be honest my Javascript knowledge is basic at best and I found this piece of code which did what I wanted, basically have six or seven various images and on load an image was selected and used as a hyperlink to launch the site.
All of the code can be found
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" SP" "<html xmlns="<head>
<title>Cameron S Richmond | Webdesigner </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="The portfolio website for Cameron S Richmond, a London based web designer">
<meta name="keywords" content="Webdesign, web design, design, web, webdesigner, web, designer, HTML, HTML web, HTML web design, Flash, Flash web, Flash web design, Flash, Animation, Creative motion graphics, Graphics, Graphic Design, Design, 3D, 3D modelling, model 3D, London web design, Design London, Web design London, London Design Web, Cameron Richmond" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<h1>Cameron S Richmond</h1>
<h2>Webdesigner</h2>
<div id="image">
<a href="javascript:void(0);" onClick="window.open('flash.html', '','width=1270,height=826, scrollbars=auto');">
<script type="text/javascript" ><!--
function image() { };
image = new image();
number = 0;
// imageArray
image[number++] = "<img src='i/home/image_1.jpg' alt='Portfolio 1'>"
image[number++] = "<img src='i/home/image_2.jpg' alt='Portfolio 2'>"
image[number++] = "<img src='i/home/image_3.jpg' alt='Portfolio 3'>"
image[number++] = "<img src='i/home/image_4.jpg' alt='Portfolio 4'>"
image[number++] = "<img src='i/home/image_5.jpg' alt='Portfolio 5'>"
image[number++] = "<img src='i/home/image_6.jpg' alt='Portfolio 6'>"
image[number++] = "<img src='i/home/image_7.jpg' alt='Portfolio 7'>"
increment = Math.floor(Math.random() * number); document.write(image[increment]);
//-->
</script></a>
</div>
<p>System requirements: Broadband connection, 1280 x 1024 resolution, Flash 8 plug-in, IE6.0 or Firefox 1.5 </p>
</div>
</body>
</html>
Any help of reslving this matter, ie not getting tha banner would really really be very much appreciated.
Thanking everyone in advance
Cameron