savage1987
Donating Member
- Joined
- May 8, 2005
- Messages
- 3,660
- Reaction score
- 31
- Points
- 48
- Location
- Townsville
- Website
- www.facebook.com
- Members Ride
- LS1 VN + WK Grange 0010 + HPW VX SS
I've only tonight started playing around with HTML, have been reverse engineering this template for my own devices...
There's a selectable image section in there which seems to be coded wrong to start with. It works fine when hovering the mouse over the thumbnails, the main image changes accordingly. When you click the main image, however, instead of opening the image it's currently displaying, it ALWAYS opens the first image (of the Kindle).
I'm guessing the problem lies somewhere in this section of code
At a guess I'd say it's to do with the target="_blank" part. I just don't know what to change it to.
I'm sure this is a simple fix with an overlooked string somewhere, but I'm so new to HTML I really have no idea how to fix it.
On a side note, the viewer is very clumsy as well - no provision for images of different ratios - it stretches everything to fit its 400x300 format. I'm not overly worried about that, might play with fixing that later if I can work out how.
I'm adapting this format for an ebay ad, just chose to go about it my own way using an online editor I found and trying to get my head around how HTML code works. Learning opportunity
I used to program a bit in Pascal and C++ and became quite adept at it but that was years ago (high school, ~2004) so this is a little different to what I'm used to but once I figure out how HTML handles things and what its limitations are I'm sure I can pick it up quite quickly based on that previous knowledge.
Anyway I digress
Thanks for reading
Sam
There's a selectable image section in there which seems to be coded wrong to start with. It works fine when hovering the mouse over the thumbnails, the main image changes accordingly. When you click the main image, however, instead of opening the image it's currently displaying, it ALWAYS opens the first image (of the Kindle).
I'm guessing the problem lies somewhere in this section of code
Code:
<div id="images">
<div id="mainImage">
<a href="http://ebayappreview.com/templates/images/products/amazonkindle.jpg" target="_blank"><img src="http://ebayappreview.com/templates/images/products/amazonkindle.jpg" width="400" height="300" hspace="0" vspace="0" border="0" align="left" name="mainphoto"></a>
</div>
<div id="thumbImage">
<!-- image one -->
<a OnMouseOver="mainphoto.src='http://ebayappreview.com/templates/images/products/amazonkindle.jpg';" OnMouseOut="mainphoto.src='http://ebayappreview.com/templates/images/products/amazonkindle.jpg';">
<img src="http://ebayappreview.com/templates/images/products/amazonkindle.jpg" width="80" height="60" hspace="10" vspace="8" border="0" align="left"></a>
<!-- image two -->
<a OnMouseOver="mainphoto.src='http://ebayappreview.com/templates/images/products/iphone3g.jpg';" OnMouseOut="mainphoto.src='http://ebayappreview.com/templates/images/products/iphone3g.jpg';">
<img src="http://ebayappreview.com/templates/images/products/iphone3g.jpg" width="80" height="60" hspace="10" vspace="8" border="0" align="left"></a>
<!-- image three -->
<a OnMouseOver="mainphoto.src='http://ebayappreview.com/templates/images/products/palmpre.jpg';" OnMouseOut="mainphoto.src='http://ebayappreview.com/templates/images/products/palmpre.jpg';">
<img src="http://ebayappreview.com/templates/images/products/palmpre.jpg" width="80" height="60" hspace="10" vspace="8" border="0" align="left"></a>
<!-- image four -->
<a OnMouseOver="mainphoto.src='http://ebayappreview.com/templates/images/products/pspconsole.jpg';" OnMouseOut="mainphoto.src='http://ebayappreview.com/templates/images/products/pspconsole.jpg';">
<img src="http://ebayappreview.com/templates/images/products/pspconsole.jpg" width="80" height="60" hspace="10" vspace="8" border="0" align="left"></a>
</div>
<div style="margin-left:200px; font-size:12px; margin-top:4px; ">Hover To Enlarge</div>
</div>
At a guess I'd say it's to do with the target="_blank" part. I just don't know what to change it to.
I'm sure this is a simple fix with an overlooked string somewhere, but I'm so new to HTML I really have no idea how to fix it.
On a side note, the viewer is very clumsy as well - no provision for images of different ratios - it stretches everything to fit its 400x300 format. I'm not overly worried about that, might play with fixing that later if I can work out how.
I'm adapting this format for an ebay ad, just chose to go about it my own way using an online editor I found and trying to get my head around how HTML code works. Learning opportunity
I used to program a bit in Pascal and C++ and became quite adept at it but that was years ago (high school, ~2004) so this is a little different to what I'm used to but once I figure out how HTML handles things and what its limitations are I'm sure I can pick it up quite quickly based on that previous knowledge.
Anyway I digress
Thanks for reading
Sam