Log in

View Full Version : text on rightside of image not under



followhim
02-05-2010, 05:11 PM
I got this code from:

http://www.dynamicdrive.com/style/csslibrary/item/css-popup-image-viewer/

And it works great(thanks), i love to have some infomation on rightside of the image. Not under the image.....Please
thanks for reading

djr33
02-05-2010, 06:22 PM
Please post a link to the page on your site that contains the problematic script so we can check it out.

followhim
02-05-2010, 06:40 PM
Here is the page:

http://laemeraldfashion.com/dresses.php

thank you very much

northyukon
02-06-2010, 02:44 AM
Just looked at your website. I have a small screen and when I hover over one of your pictures, the picture is on the right but only half of it is visible. I can't scroll over to see the full picture. Not really the answer to your question, but.....

stringcugu
02-06-2010, 07:45 AM
i changed the top: 10px;left: 9px; to this just a sample

.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 10px;
left: 9px; /*position where enlarged image should offset horizontally 100px and 900 px forme */

<table width="465" border="0">

<tr>
<td><a class="thumbnail" href="IMG_0162.gif" align='left'><img src="IMG_0162.gif" width="100" height="200" border="0" align='left'/><br />
<span><p align='left'>Style: 8398<br />
S,M,L(1-2-1) <img src="IMG_0162-250.jpg" align='right'/>
Style: 8398<br />
S,M,L(1-2-1)</span> <br />
</a></td>
<td><a class="thumbnail" href="IMG_0163.gif" align='left'><img src="IMG_0162.gif" width="100" height="200" border="0" align='left'/><span>
Simply beautiful.<img src="IMG_0163-250.jpg" align='left'/><br />

</span><span>Simply beautiful.</span></a> <br />
<p></p></td>

followhim
02-06-2010, 11:16 PM
thank you.

I changed to TOP10PX AND LEFT 9PX.
As you see the image will show under the MENU.
Now you be able to see the TEXT, love to move the text to the right side of the image.

thank you for your time

stringcugu
02-07-2010, 01:29 AM
what browser are you using i save your page and it should work on firefox also
put z-index:111; in

.thumbnail:hover span{ /*CSS for enlarged image on hover*/
z-index:111;
visibility: visible;
top: 10px;
left: 9px; /*position where enlarged image should offset horizontally100px and 900 px forme */
}


text on left

<a class="thumbnail" href="IMG_0162.gif" align='left'>
<img src="IMG_0162.gif" width="100" height="200" border="0" align='left'/><br />
<span><p align='left'>Style: 8398<br />
S,M,L(1-2-1) <img src="IMG_0162-250.jpg" width="100" height="200" align='right'/>
Style: 8398<br />
S,M,L(1-2-1)<span><p align='right'>Style: 8398<br /></span></span> <br />

text on right

<a class="thumbnail" href="IMG_0163.gif" align='left'>
<img src="IMG_0162.gif" width="100" height="200" border="0" align='left'/><br />
<span>Simply beautifulzzxx.<img src="IMG_0162.gif" width="100" height="200" border="0" align='right'/>
<img src="IMG_0163-250.jpg" align='left'/><br />
<p align='left'>Style: 8398<br /></span><span>Simply beautifultop00top.</span></a> <br />


<a class="thumbnail" href="IMG_0163.gif" align='left'>
<img src="IMG_0162.gif" width="100" height="200" border="0" align='left'/><br />
<span>
Simply beautiful.<img src="IMG_0163-250.jpg" align='left'/><br />
</span><span>Simply beautiful.</span></a> <br />

followhim
02-07-2010, 05:49 AM
Maybe i didn't explained little more clear...
Everything is working but i want to replace the Text on right side of the image.
Not under image If you click on Dresses and first picture show style number, i want to replace this information on right side of the image.

i hope i explain little better.
thanks for your patient

stringcugu
02-07-2010, 07:05 AM
align='left' in the <img

<img src="IMG_0162.gif" width="100" height="200" border="0" align='left'/>jkhjuihui
hsahjkeioekdjhjkdsh

text on right
look for this --Style: 8398--

<a class="thumbnail" href="IMG_0163.gif" align='left'>
<img src="IMG_0162.gif" width="100" height="200" border="0" align='left'/><br />
<span>Simply beautifulzzxx.<img src="IMG_0162.gif" width="100" height="200" border="0" align='right'/>
<img src="IMG_0163-250.jpg" align='left'/><br />
<p align='left'>--Style: 8398--info info info info
what type of info <br /></span><span>Simply beautifultop00top.</span></a> <br />


take one image out this has 2

align='right
<img src="IMG_0162.gif" width="100" height="200" border="0" align='right'/>[[[jkhjuihui
hsahjkeioekdjhjkdsh]]]

followhim
02-07-2010, 10:15 PM
It is awesome how i got help from this Forum.
I wonder if there is the way i could send little donation to this Forum???

Now i have one more dream with this wonderful code and i'm not sure i should ask here.
It is not right let me know i will open new thread(?).

How can i have pop up image right next to the thumbnail image.....too much to ask?


thank you very much for your time to help other
james

stringcugu
02-08-2010, 04:14 AM
------------------------------NO 1???
<style>
.spiderpic{position: relative;z-index: 0;}
.spiderpic:hover{background-color: transparent;z-index: 50;}
.spiderpic span{position: absolute;background-color: white;padding: 5px;left: -1000px;border: 1px solid black;visibility: hidden;color: black;text-decoration: none;}
.spiderpic span img{border-width: 0;padding: 2px;}
.spiderpic:hover span{visibility: visible;top:-110;left:60px;}
</style>
<a class="spiderpic" href="http://webdesigninfo.wordpress.com"><img src="http://a.wordpress.com/avatar/settysantu-48.jpg?1180110315" width="48px" height="48px" border="0" /><span><img src="http://www.stumbleupon.com/mainpics/2725502.jpg" /></span></a>
<script type="text/javascript">
function ShowPopup(hoveritem)
{hp =eval("hoverpopup");
hp.style.top = hoveritem.offsetTop + 18;
hp.style.left = hoveritem.offsetLeft + 20;
hp.style.visibility = "Visible";}
function HidePopup(){hp =eval("hoverpopup");hp.style.visibility="Hidden";}
function HidePopupz(){myimagename.style.visibility="Hidden";}
function HidePopupon(){myimagename.style.visibility="visible";}
</script>
<a id="hoverover" style="cursor:default;" onMouseOver="ShowPopup(this);" onMouseOut="HidePopup();">Hover over me 1!</a>
<a id="hoverover" style="cursor:default;" onMouseOver="ShowPopup(this);" onMouseOut="HidePopup();">Hover over me 2!</a>
<a id="hoverover" style="cursor:default;" onMouseOver="ShowPopup(this);" onMouseOut="HidePopup();">Hover over me 3!zzz</a>
<br>This is somezzzzzzzz<br><a id="hoverover" style="cursor:default;" onMouseOver="ShowPopup(this);" onMouseOut="HidePopup();">Hover over me 3!zzz</a>
incidental<br>
Text.
<div id="hoverpopup" style="visibility:visible; position:absolute; top:0; left:220;z-index:311;">
<table bgcolor="#0000FF">
<tr><td><font color="#FFFFFF">This is my popup</font></td></tr>
<tr><td bgcolor="#8888FF">Hello I am a popup table</td></tr>
</table></div>
__________________________________________________ ___________________
Where the text says hover over me! I am placing images instead of text.
Maybe I am asking the wrong question.
How do SE's like hidden tables? Since it is a js I figured bots will not like it but so what. The page is for humans. :)
The code I posted below works fine. To add more boxes just ad more lines like below and increment the red numbers
<a id="hoverover" style="cursor:default;" onMouseOver="ShowPopup(3);" onMouseOut="HidePopup(3);">Hover over me!</a>
<a id="hoverover" style="cursor:default;" onMouseOver="ShowPopup(4);" onMouseOut="HidePopup(4);">Hover over me!</a>
And the boxes are<a id="hoverover" style="cursor:default;" onMouseOver="ShowPopup(4);" onMouseOut="HidePopup(4);">Hover over me!</a>
<div id=3 style="visibility:hidden; position:absolute; top:100; left:100;">
<table bgcolor="#00FFFF">
<tr><td><font color="#FFFFFF">This is my popup</font></td></tr>
<tr><td bgcolor="#888DFF">Hello I am a popup table</td></tr>
</table></div>
<div id=4 style="visibility:hidden; position:absolute; top:100; left:100;">
<table bgcolor="#00FFFF">
<tr><td><font color="#FFFFFF">This is my popup</font></td></tr>
<tr><td bgcolor="#888DFF">Hello I am a popup table</td></tr>
</table></div>
<a href=# id="hoverover" style="cursor:default;" onMouseOver="ShowPopup(4);" onMouseOut="HidePopup(4);">Hover over me!</a>
<a href=# id="hoverover" style="cursor:default;" onMouseOver="ShowPopup(3);" onMouseOut="HidePopup(4);">Hover over me!</a>
<a href=# id="hoverover" style="cursor:default;" onMouseOver="ShowPopup(2);" onMouseOut="HidePopup(4);">Hover over me!</a>
-----------------------------NO 2???
<script type="text/javascript">
<!--
function outputLAYER(layName,html){
if(document.layers)
{
with(document.layers[layName].document)
{open()
write(html)
close()}}else
document.getElementById(layName).innerHTML=html}
var img0= new Image()
img0.src = './htm1.gif'
var htm0 = '<div id="divMenu"><a href="javascript://" onclick="moveMenu()">innMENU</a>-<a href="javascript://">Link1</a>-<a href="javascript://">Link2</a>-<a href="javascript://">Link3</a>-<a href="javascript://">Link4</a><b>‚‚‚•ϐ”htm0‚“—e‚‚</b></div>'
var htm1 = '<a href="javascript://" onclick="moveMenu()">MENU</a><img src="'+img0.src+'">'
var htm2 = '<form><input type="button"'
+ ' style="background-color:pink;width:250px;height:30px"'
+ ' value="‚‚‚‚‚‚ƒtƒH[ƒ€‚‘‚o‚‚‚"'
+ ' onclick="alert(\'htm2\')"><br>'
+ ' <input type="text" value="html2">'
+ '</form>'
var htm3 = '<a href="javascript://" onclick="moveMenu()">MENU</a>-<a href="javascript://">Link1</a>-<a href="javascript://">Link2</a>-<a href="javascript://">Link3</a>-<a href="javascript://">Link4</a><a href="javascript://" onclick="moveMenu()">MENU</a>-<a href="javascript://">Link1</a>-<a href="javascript://">Link2</a>-<a href="javascript://">Link3</a>-<a href="javascript://">Link4</a><b>‚‚‚•ϐ”htm0‚“—e‚‚</b>'
var htm4 = '<a href="javascript://" onclick="moveMenu()">44444MENU</a>'
//--></script>
<a href="javascript:void(0)"
onmouseover="outputLAYER('hoverpopup',htm0)">test0htm0</a>
<a href="javascript:void(0)"
onmouseover="outputLAYER('hoverpopup',htm1)">test0htm1</a>
<a href="javascript:void(0)"
onmouseover="outputLAYER('hoverpopup',htm2)">test0htm2</a>
<a href="javascript:void(0)"
onmouseover="outputLAYER('hoverpopup','divMenuCont','htm0')">divMenuhtm2mmm</a>
<a href="javascript:void(0)"
onmouseover="outputLAYER('hoverpopup','divMenuCont','htm2')">divMenuhtm2mmm</a>
<a href="javascript:void(0)"
onmouseover="outputLAYER('hoverpopup',htm0)">divMenuConthtm0??</a>
<a href="javascript:void(0)"
onmouseover="outputLAYER('hoverpopup',htm3)">divMenuConthtm3??</a>
<a href="javascript:void(0)"
onmouseover="outputLAYER('hoverpopup',htm2)">divMenuConthtm2??</a>
<a href="javascript:void(0)"
onmouseover="outputLAYER('divMenuCont',htm1)">divMenuConthtm1?</a>
<a href="javascript:void(0)"onmouseover="outputLAYER('divMenu',htm1)">htm2</a>
<a href="javascript:void(0)"onmouseover="divMenuCont('divMenu',htm0)">htm0</a>
<a href="javascript:void(0)"onmouseover="outputLAYER('divMenu',htm1)">htm1</a>
<a href="javascript:void(0)"onmouseover="outputLAYER('divMenu',htm2)">htm2</a>
<a href="javascript:void(0)"onmouseover="outputLAYER('divMenu',htm3)">htm3</a>
<a href="javascript:void(0)"onmouseover="outputLAYER('divMenu','htm4')">htm4</a>
<STYLE>
//#divMenu{position:absolute; left:0; top:315; width:300; height:130; clip:rect(0,300,90,0); z-index:111;background-color:green; layer-background-color:#9797FF;}</STYLE>
<div id="divMenu">
<a href="javascript://" onclick="moveMenu()">MENU</a>-<a href="javascript://">Link1</a>-<a href="javascript://">Link2</a>-<a href="javascript://">Link3</a>-<a href="javascript://">Link4</a>
</div>
--------------------N0I 3???
<SCRIPT LANGUAGE="JavaScript"><!--
var position = -1;
for (var i=0;i<document.images.length;i++)
if (document.images[i].name == 'thisone')
position = i;
//--></SCRIPT>
<SCRIPT LANGUAGE="JavaScript"><!--
function show(name,src) {
if (document.images)
document.images[name].src = src;}
//--></SCRIPT>
<TABLE><TR><TD>
<A HREF="javascript:show('myimagename','1.gif');" onMouseOver="show('myimagename','1.gif');HidePopupon()" onMouseOut="HidePopupz();"><IMG SRC="1c.gif" WIDTH="50" HEIGHT="50" BORDER="0"></A>
<A HREF="javascript:show('myimagename','2.gif')" onMouseOver="show('myimagename','2.gif');HidePopupon()" onMouseOut="HidePopupz();"><IMG SRC="2c.gif" WIDTH="50" HEIGHT="50" BORDER="0"></A>
<A HREF="javascript:show('myimagename','3.gif')"onMouseOver="show('myimagename','3.gif');HidePopupon()" onMouseOut="HidePopupz();"><IMG SRC="2c.gif" WIDTH="50" HEIGHT="50" BORDER="0"></A>
</TD></TR><TR><TD>
<IMG SRC="1.gif" NAME="myimagename" HEIGHT="200" WIDTH="200"style="position:absolute; left:110; top:1; visibility:visible">
</TD></TR></TABLE>

followhim
02-08-2010, 06:42 AM
As you know i just be able to pop up the image with right place for text...thanks
Can you be little more patient and tell me what can i do with these code?
I really hope that i be able to follow these code and have pop up image with be right next to thumbnail image..thanks again