Hi,
essential kindly helped in getting a javascript imageflow menu to display pictures inside an inline frame. Problem i have is that everything is displaying wrong on the page.
Here's what i have currently code wise, i most likely have things in the wrong places i.e divs ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Untitled Page</title> <meta http-equiv="imagetoolbar" content="no">
<meta name="generator" content="">
<style type="text/css"> div#container { position: absolute; left: 50%; top: 50%; width: 800px; height: 600px; margin-top: -300px; margin-left: -400px; } </style>
<link rel="stylesheet" title="Standard" href="imageflow.css" type="text/css" media="screen" />
<script type="text/javascript" src="imageflow.js"><!-- // -->
</script>
<script type="text/javascript">
<!-- BEGIN HIDING
window.onload = function()
{
myImg = document.getElementsByTagName('img');
for ( var x = 0 ; x < myImg.length; x++ ) {
myImg[x].onclick = 'click(this)';
myImg[x].name = 'image' + x;
}
}
document.onclick = click; function click( e )
{ e = e ? e : window.event;
t = e.target ? e.target : e.srcElement;
for ( var i = 0; i <= myImg.length; i++ ) {
if ( t.name && t.name == myImg[i].name ) { document.getElementById('InlineFrame1').src = myImg[i].src; return true;
}
}
}
// DONE HIDING -->
</script>
<!-- End of the line -->
</head>
<body bgcolor="#000000" text="#000000">
<div id="container">
<div style="background-color:#000000;position:absolute;left:0px;top:0px;width:796px;height:268px;z-index:0">
<div id="imageflow" style="left:0px;top:0px;width:796px;height:268px">
<div id="loading">
<b>Loading images</b><br/>
<img src="loading.gif" width="208" height="13" alt="loading" />
</div>
<div id="images">
<img src="images/backdrop.jpg" longdesc="images/backdrop.jpg" alt="backdrop.jpg" />
<img src="images/background.jpg" longdesc="images/background.jpg" alt="background.jpg" />
<img src="images/camera 014.jpg" longdesc="images/camera 014.jpg" alt="camera 014.jpg" />
<img src="images/camera 015.jpg" longdesc="images/camera 015.jpg" alt="camera 015.jpg" />
</div>
<div id="captions"></div>
<div id="scrollbar"> <div id="slider">
</div> </div> </div> </div>
<iframe name="InlineFrame1" id="InlineFrame1" style="position:absolute;left:0px;top:600px;width:794px;height:442px;z-index:1;" src="" frameborder="1">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
</div>
</body>
</html>
Any help would be amazing , thankyou in advance , kookies :)