That's actually a little simpler than I was imagining. Change this:
Code:
<style type="text/css">
.magnifyarea#myarea {
top: 148px!important;
left: 290px!important;
position: fixed!important;
}
</style>
to:
Code:
<style type="text/css">
.magnifyarea {
top: -66px!important;
left: 22px!important;
}
#mymag {
position: relative;
}
</style>
<!--[if lt IE 7]>
<style type="text/css">
.magnifyarea {
left: -200px!important;
}
</style>
<![endif]-->
Change this:
Code:
<script type="text/javascript">
jQuery(document).ready(function($){
$('#image1').addimagezoom({
zoomrange: [10, 10],
magnifiersize: [400,400],
magnifierpos: 'right',
cursorshade: true,
largeimage: 'bronzer/mbz01.png' //<-- No comma after last option!
})
$('.magnifyarea').last().attr('id', 'myarea');
$('#image2').addimagezoom({
zoomrange: [10, 10],
magnifiersize: [400,400],
magnifierpos: 'right',
cursorshade: true,
largeimage: 'foundations/lid.png' //<-- No comma after last option!
})
$('.magnifyarea').last().attr('id', 'myarea');
})
</script>
to:
Code:
<script type="text/javascript">
jQuery(document).ready(function($){
$('#image1').addimagezoom({
zoomrange: [10, 10],
magnifiersize: [400,400],
magnifierpos: 'right',
cursorshade: true,
largeimage: 'bronzer/mbz01.png' //<-- No comma after last option!
})
$('#image2').addimagezoom({
zoomrange: [10, 10],
magnifiersize: [400,400],
magnifierpos: 'right',
cursorshade: true,
largeimage: 'foundations/lid.png' //<-- No comma after last option!
})
$('.magnifyarea').appendTo($('#mymag'));
})
</script>
Add this highlighted <div> as shown:
Code:
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="450" height="450" align="center"><div id="mymag"></div><img src="bronzer/mbz01.png" width="373" height="307" /></td>
</tr>
<tr>
<td width="450" height="25">
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80" height="65"><p><img id="image1" border="0" src="bronzer/mbz01.png" style="width:80px;height:65px" /><p></td>
<td width="80" height="65"><p><img id="image2" border="0" src="foundations/lid.png" style="width:80px;height:65px" />
<p></td>
<td width="290" height="65" class="zoom_style"><img src="image/zoom.png" width="150" height="65" /></td>
</tr>
</table>
</td>
</tr>
</table>
Notes:
- The only thing I'm not like 90% certain of is:
Code:
<!--[if lt IE 7]>
<style type="text/css">
.magnifyarea {
left: -200px!important;
}
</style>
<![endif]-->
That style is for IE 6 and less (anything less than IE 7, lt IE 7). I cannot really test if it's accurate as my local copy of your page won't load in my IE 6. That's probably due to something loaded for IE 6 that has to be live, like a png fix thing. But I couldn't track it down. I had to make some assumptions and guesses as to that lt IE 7 style. It could be wrong. Once it's live with these changes I (or you if you have IE 6 and care about it) can check it. Let me know.
- There are other problems with the page that you may or may not already be aware of and intend to fix. The rollover.js file has an HTML header and some other HTML tags so doesn't load. If you mean to use it, it should have only the script code in it:
Code:
function newImage( imgSrc ){
var imgName = new Image();
imgName.src = imgSrc;
return imgName;
}
function change( imgName, imgLocation )
{
document[imgName].src = imgLocation ;
}
var preloadFlag = false;
function loadImages()
{
if (document.images)
{
buttonhome1 = newImage("foundations/tinyhover_mf_01.png");
preloadFlag = true;
changeImage();
}
}
If you don't mean to use it (I don't think you do as at least some rollover duties appear to be being done by something else), it's external script tag on the page:
Code:
<script language="JavaScript" src="rollover.js"></script>
and any references to its functions on the page or in the page's scripts (I couldn't find any) should be removed.
- Using so many .png is wasteful. You could substitute high resolution .jpg and save a lot of load time/bandwidth. The smaller images should be smaller images, not resized from the larger ones by the browser.
- The spinningred.gif (the loading image for Featured Image Zoomer) is a 404 Not Found.
- There could be other things. These are just what jumped out at me.
- Any problems with the modifications to the Featured Image Zoomer script, let me know.
Bookmarks