PDA

View Full Version : Cmotion will not work in IE, working fine in Firefox



jofung
06-18-2008, 02:13 AM
1) Script Title: Cmotion Image Gallery

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm#

3) Describe problem: I am trying to use the script in my website but it will not work under IE, the image will not scroll or open in Iframe. But it work perfectly on FireFox. Can someone have a look at my script and see what is wrong with it? Thank you.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>

<link href="style.css" rel="stylesheet" type="text/css" />
<link href="layout.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#motioncontainer {
width:expression(Math.min(this.offsetWidth, maxwidth)+'px');
}
</style>
<script language="javascript" type="text/javascript" src="motiongallery.js">
function loadTwo(iframe1URL)
{
parent.FRAME1.location.href=iframe1URL
}
</script>
<!-- Do not edit IE conditional style below -->
<!--[if gte IE 5.5]-->

<!--[endif]-->
<!-- End Conditional Style -->
<!--
/***********************************************
* CMotion Image Gallery- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
* Modified by Jscheuer1 for autowidth and optional starting positions
***********************************************/
-->
</head>
<body id="page_3" >
<div class="main_0">
<div class="main">
<!--header -->
<div id="header">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24" width="766" height="355">
<param name="movie" value="flash/slim.swf?button=4" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<!--[if !IE]> <-->
<object data="flash/slim.swf?button=4" width="766" height="355" type="application/x-shockwave-flash">
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object>
</div>
<!--header end-->
<!--content -->
<div id="wrapper">
<div class="layer_1">
<div class="layer_0">
<div class="column">
<div class="h">
<div class="bg_h">
<img src="images/4_h_1.gif" alt="" /><br />
</div>
</div>
<div class="indent">
<iframe name="FRAME1" src="images/Gallery/IMGP0225.jpg" width="600" height="400" frameborder="1" scrolling="no"></iframe>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="motioncontainer" style="position:relative;overflow:hidden;">
<div id="motiongallery" style="position:absolute; left:0; top:0; white-space: nowrap; width: 1720px; height: 114px;">
<nobr id="trueContainer"><a href="javascript:enlargeimage('images/kart_front.png')"><img src="images/image_9small.jpg" border=1 /></a>
<a href="javascript:enlargeimage('images/kart_front.png', 300, 300)"><img src="images/image_9small.jpg" border=1 /></a>
<a href="http://www.dynamicdrive.com"><img src="images/image_9small.jpg" border=1 /></a>
<a href="#"><img src="images/image_9small.jpg" border=1 /></a>
<a href="#"><img src="images/image_9small.jpg" border=1 /></a>
<a href="#"><img src="images/image_9small.jpg" border=1 /></a>
<a href="#"><img src="images/image_9small.jpg" border=1 /></a> <a href="#"><img src="images/image_9small.jpg" border=1 /></a>
<a href="#"><img src="images/image_9small.jpg" border=1 /></a>
</nobr> </div>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
</div>
<div class="column_1"><img src="images/spacer.gif" alt="" width="1" height="1" /><br /></div>
<div class="clear"></div>
</div>
</div>
</div>
<!--content end-->
<!--footer -->
<div id="footer">
<div class="indent">
<div class="column">
11 Some Street Second Floor, New York WA 02020<br />
<img src="images/spacer.gif" alt="" width="1" height="3" /><br />
<span>Auto.Fan &copy; 2007 | <a href="index-5.html">Privacy policy</a></span>
</div>
<div class="column_1">
<div class="indent">
E-mail: <a href="mailto:#">mail@companynanme.com</a>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<!--footer end-->
</div>
</div>
</body>
</html>

Nile
06-18-2008, 03:09 AM
Please post a link to the page on your site that contains the problematic script so we can check it out.

jofung
06-18-2008, 03:23 AM
Sorry my web is not live yet. Just see if you could pick any error. the script work alone fine in IE but when put together..it's not working

Nile
06-18-2008, 03:23 AM
Can you please then take 5 seconds of your time, and upload it to: localhostr.com (Thanks if you can.)

jofung
06-18-2008, 03:39 AM
http://localhostr.com/files/160122/gallerytest.html
http://localhostr.com/files/3acfde/motiongallery.js
http://localhostr.com/files/5640fb/style.css
http://localhostr.com/files/d680e7/IMGP0225_tn.jpg
http://localhostr.com/files/77cfbc/gallery.html

Nile
06-18-2008, 01:11 PM
Lol, I meant like, put it in a zip please. Sorry for making to do this over, tehehe.

jofung
06-18-2008, 11:53 PM
Here you go!.. Thank you

http://localhostr.com/files/aa70a6/site_flash.rar

Nile
06-19-2008, 01:27 PM
Ok, it sounds like I'm being a real nudge right now, but... rar... I don't use it. :( zip is good if you can.