This Info is out of date, there is an upgraded script available that works better, and requires no changes to your code apart from replacing the contents of the image handler provided jscript_imagehover with new code
This is a bodge to fix the image hover issue in Image Handler that effects Webkit (Safari and Chrome) based browsers and the Opera browser.
The issue was that the popup hover image only appeared above the original page fold, so when you had a large list of products and hovered over one near the bottom, the popup doesn't appear on screen, (it is working, it's just appearing off the screen)
Ok first off i am not a developer, i am a bodger, I take a few bits of code and bodge them together to get the outcome i want.
This bodge is given as an "as is where is" bodge and i don't take any responsibility for any problems you may encounter, so use common sense and back-up your files before making any changes.
First off, you should have installed image handler, and it should be working correctly in IE and/or Firefox.
You will need to alter a few files, if these files are not in your template directory, then you may need to copy them from the default template.
zencart -> Includes -> templates -> your template -> common
html_header.php
tpl_main_page.php
Step One
Sorting out the javascript
This is the crux of the matter, the current javascript doesn't work with Safari, Chrome and Opera, but it works fine with Firefox and Internet explorer, the new fix file works with all browsers i have tested except IE6, so what we are going to do is have two javascript files, one for modern browsers and one for IE6, not the perfect solution, but it works.
For this bodge to work, you will need to rename this file
zencart -> Includes -> templates -> your template -> jscript
jscript_imagehover.js
to
ie6_imagehover.js
This file should be in the jscript directory of your template as well as the default template, change them both and make sure there is no file on the server called jscript_imagehover.js as this will conflict and can cause errors
copy this file and add it to your jscript directory.
Step 2
Now we need to call the javascript files depending on the browser, so you will need to open this file
zencart -> Includes -> templates -> your template -> common
html_header.php
scroll right to the bottom of the page and then paste this directly before the closing head tag
remembering to replace YOUR_TEMPLATE with your template name
<!--[if lt IE 7]>
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/IE6_imagehover.js"></script>
<![endif]-->
<!--[if gte IE 7]><!-->
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/mb_imagehover2.js"></script>
<!--<![endif]-->
Basically all that does is select the original javascript for IE6, all other browsers get the new javascript
Step 3
Open up this file
zencart -> Includes -> templates -> your template -> common
tpl_main_page.php
add the following directly below the body tag
<div style="display: none; position: absolute; z-index: 110; left: 400; top: 1000; width: 15; height: 15" id="preview_div"></div>
Save and upload you files.
Step 4 - CSS
add this to the bottom of your stylesheet
a:hover {
text-decoration:none;
}
a {
text-decoration:none;
}
#interface1 {
z-index:1;
}
#loader_container {
text-align:center;
position:absolute;
top:40%;
width:100%}
#loader {
font-family:Tahoma, Helvetica, sans;
font-size:10px;
color:#000000;
background-color:#FFFFFF;
padding:10px 0 16px 0;
margin:0 auto;
display:block;
width:135px;
border:1px solid #6A6A6A;
text-align:left;
z-index:255;
}
#progress {
height:5px;
font-size:1px;
width:1px;
position:relative;
top:1px;
left:10px;
background-color:#9D9D94
}
#loader_bg {
background-color:#EBEBE4;
position:relative;
top:8px;left:8px;height:7px;
width:113px;font-size:1px
}
.border_preview{
z-index:100;
position:absolute;
background: #fff;
border: 1px solid #444;
}
.preview_temp_load {
vertical-align:middle;
text-align:center;
padding: 10px;
}
.preview_temp_load img{
vertical-align:middle;
text-align:center;
}
/*Image Title Styling*/
.title_h2 {
padding:12px 0 0 18px;
}
h2 {
font-size:14px;
padding:0;
margin:0;
font-family: "century gothic";
}
Once you have uploaded all the files, it should be working, the image hover has a loading bar unfortunately this has a bug in firefox for some document types, so if you see the bug remove the css that relates to the loading bar
you can see this working on this site
Saturday, May 29, 2010
Monday, December 14, 2009
First post for 2009
Well i thought i had better get a post in for 2009, can't think of anything to say but well here is 2009 and i made it in before the end of the year
Thursday, October 16, 2008
Phew nearly left it too long
I'm back, yes and it's not even a year since my last post.
Well whats happened in the last year or so
see you next year, not that anyone would read this, because well, it's one of those blogs you see and think WHY?
Why is this person blogging they obviously have very little to say and it's as boring as hades
oh well toodle pip
Well whats happened in the last year or so
- We have another sprog on the way - in a month or so a little Nigella will pop into the world, still havent thought out a name, so the wee thing may actually end up being called Nigella ( oh dear)
- Pretty much unemployed, the US work that constituted 90% of our work has dried up, i have done a week of temping and thats about it recently we are still getting the odd job through, but I have a horrible feeling i am going to need to retrain again
- Alex turned 2 Last month, we have been doing loads of Father and son stuff over the past year, most mornings we go to the park or the petting zoo, or the library, we built a sand pit about a month ago, I did the hard Yakka and Alex supervised although he did insist on trying to fill the wheelbarrow using only his toy spade, and he tried to screw in every single screw, and when he realised that two year olds aren't quite that strong he resorted to trying to hammer the screws in with the base of the screw driver.
- I am still a dismal failure at fixing up the house, pretty much nothings been done, i filled a hole to stop the mice getting in, but thats about it
see you next year, not that anyone would read this, because well, it's one of those blogs you see and think WHY?
Why is this person blogging they obviously have very little to say and it's as boring as hades
oh well toodle pip
Tuesday, November 6, 2007
A Blessay of note
I have read a number of blogs, but very few if any have I returned to for a second look, I have found that most can be divided into 3 or 4 categories
well the PressF1 blogs
And Stephen Frys "Blogs Blessays Blaquisitions"
I would dearly love to have the ability to write like Stephen Fry (I'd also love to be able to purchase all the gadgets he writes about to), but I have never been able to extract what i want to say out of my head, the words just seem clumsy when written down
Anyway gotta go and deal with the kids
- Spotty Blogs - These are characterised by frequent semi intelligible rants against Microsoft/Telecom/Schools etc (all of which their Mummy and Daddy pay for), with only the most tenuous argument to back up the basis of their rants, the image you get of the writers of these blogs is a spotty adolescent who still obsesses about Pokemon and that the perfect woman will her drop panties when she hears he is a grand pokemon master /level 20 dungeon master or whatever, basically they are the type of person who only gets a sense of self worth by making others feel miserable
- Technical Blogs - I like these, there are some people/geeks etc out there, who whenever they do something they will write a step by step guide to it, whether it be installing a new operating system, replacing ram or even something not technology based like a scrapbooking project or making a cloth nappy, these are written with an altruistic side to them, which is really helpful, but for me at least once i have solved the problem that caused me to visit the blog I very rarely go back (unless a similar problem arises)
- Waffling, Meandering blogs that go nowhere - the type of blog that stops and starts with no idea of what the next post may be and no coherence between any of the posts (probably what this post is going to be) , they are fine but it is hard to know if you will like them as you can't get a feel for the author of the blogs
- Blessays - Yes i know the term doesn't exist but I have pinched it from Stephen Frys blog as these are very long winded blogs but they have the self examination and self depreciation and of course the humour to stop them appearing as rants/ or odes to pomposity
well the PressF1 blogs
And Stephen Frys "Blogs Blessays Blaquisitions"
I would dearly love to have the ability to write like Stephen Fry (I'd also love to be able to purchase all the gadgets he writes about to), but I have never been able to extract what i want to say out of my head, the words just seem clumsy when written down
Anyway gotta go and deal with the kids
Monday, December 11, 2006
First Post

This is just a test to see how it all works,
This is alex at about 2 and half months we put a Xmas hat on the little chap hoping for a good picture, hmm typical child, Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Subscribe to:
Posts (Atom)