如何在其他页面上单击以显示其他页面中的图像 [英] how to show image in other page by clicking on it in other page

查看:89
本文介绍了如何在其他页面上单击以显示其他页面中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用一页显示商品..所有四个图像都属于同一产品ID,因此当我单击特定图像时,它仅显示第一张图像...不显示我单击的图像

I have used one page in that i am displaying product items..all four images belongs to same product id so when i click on a particular image it displays the first image only...it doesnt display image on which i click

推荐答案

这是您解决问题的方法..!

Here is the solution for your problem..!

<HTML>
<HEAD>
<TITLE>Java Popup Window Example</TITLE>
<SCRIPT language="JavaScript" type="text/javascript">

var newwindow = ''
function popitup(url) {
if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url;
    newwindow.focus(); }
else {
    newwindow=window.open(url,'htmlname','width=404,height=316,resizable=1');}
}

function tidy() {
if (newwindow.location && !newwindow.closed) {
   newwindow.close(); }
}


</SCRIPT>

</HEAD>
<BODY onUnload="tidy()" >
<A HREF="javascript:popitup('gallery/templew.jpg')"><IMG SRC="gallery/templei.jpg" WIDTH="160" BORDER="0" HEIGHT="120" HSPACE="10" VSPACE="5" ALT="Decoration on the Sri Mariamman Temple" TITLE="Decoration on the Sri Mariamman Temple" ALIGN=left></A>
</BODY>
</HTML>


尝试这样可能会帮助您
使用夸脱字符串概念
在quary字符串中,您必须将image(asp控件)id传递到下一页,然后在下一页中检索该id并分配给image(asp控件)
try like this it may help you
use the quary string concept
in quary string u have to pass the image(asp control) id to the next page and in the next page retrive that id and assign to the image(asp control)


这篇关于如何在其他页面上单击以显示其他页面中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆