Your page is in violation of Dynamic Drive's
usage terms, which, among other things, state that the script credit must appear in the source code of the
page(s) using the script. Please reinstate the notice first.
Like:
Code:
<script type="text/javascript" src="/in/Departments/MasterCssJs/motiongallery.js">
/***********************************************
* CMotion Image Gallery- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for source code
* This copyright notice must stay intact for legal use
* Modified for autowidth and optional starting positions in
* http://www.dynamicdrive.com/forums/showthread.php?t=11839 by jschuer1 8/5/06
***********************************************/
</script>
Lightbox doesn't require this as it is third party and the author says he doesn't mind.
To fix IE (it is only IE 7 that seems to have this problem) put this in your body like so:
Code:
</head>
<body>
<!--[if gte IE 7]>
<span id="IE7span" style="display:none;"></span>
<![endif]-->
<center>
<img src="/in/img/header.gif" />
<form name="aspnet . . .
And, add to the onresize function in motiongallery.js (red):
Code:
onresize=function(){
if (typeof motioncontainer!=='undefined'&&motioncontainer.filters&&!IE7span){
motioncontainer.style.width="0";
motioncontainer.style.width="";
motioncontainer.style.width=Math.min(motioncontainer.offsetWidth, maxwidth)+'px';
}
menuwidth=crossmain.offsetWidth;
cross_scroll.style.left=startpos? (menuwidth-actualwidth)/startpos+'px' : 0;
}
I'm not sure about multiples, there may be an object oriented version of the Cmotion script around somewhere. Otherwise, your assessment is correct unless you write an object oriented version. There is one other possibility, you could use an iframe to show additional Cmotion galleries but, Lightbox won't like iframes. However, there is a version around called Lytebox that will work OK with iframes in most cases.
Yes, there is an object oriented version of Cmotion:
http://www.dynamicdrive.com/forums/s...ad.php?t=13302
Bookmarks