Quote:
Originally Posted by saadatshah
Try this
1) creat a file and name it image.html
HTML Code:
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<IMG border='0' SRC='image.gif' height="60" width="60"></a>
</body>
</html>
2) create another file with anyname
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<table width="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" background="someImage.gif">
<iframe src="image.html" height="50" width="50" scrolling="no" ></iframe>
</td>
</tr>
</table>
</body>
</html>
|
Ok I tried but so far withou success
Ok I replaced the original Iframe source filet called "ver_imagem.php" (portuguese for see_image) that makes to appear only the main image...
<body oncontextmenu="return false;" topmargin="0" leftmargin="2">
<?
print ("
<p align='center'><IMG src='admin/get_miniatura.php?img=$image&cliente=$id&max_width =350'>");
?>
</body>
...by the one with the same name, that you mentioned....
Now on the page called "ver_imo.php" (portuguese for see_imo) where is the IFRAME, has...
<td width='90%' align='center' height='90%'>
<p align='center'><IFRAME name='I2' scrolling='auto' width=350 height=350 SRC='ver_imagem.php?ilang=$lang&id=$id&image=2'></IFRAME>
</td>
On the same page there are 4 miniatures that I manage to have the main random image under a specific and the same image (copyright.gif) over each one that I programmed like this...
<td background='admin/get_miniatura.php?img=2&cliente=$id&max_width=100' height='75'>
<p align='center'><a href='ver_imagem.php?id=$id&image=2' target='I2'><IMG border='0' SRC='images/copyright.gif'></a></td>
...but onclick in the miniatures (miniaturas) only the copyright image appears on the IFRAME
I hope that you understaned (sorry for my bad english)
Last edited by josil; 08-02-2006 at 08:21 AM..
Reason: correction
|