我已在javascript论坛上发布此问题,因为它包含 javascript代码但是它被认为是一个asp问题。 以下头像部分javascript代码包含函数 showBigImage(isource,bigImage,header)函数调用讨论: var currentImage; function showBigImage(isource,bigImage,header){ var theImage = document.getElementById(''largeimage''); theImage.src = isource; currentImage = bigImage; document.getElementById(''photoHeader'').innerHTML = header; document.getElementById(''largeimage'')。 alt = header; 以下呈现的循环记录集代码说明了 " header"这个showBigImage的参数(isource,bigImage,header) 函数调用只能呈现为 RECORDSET的第一个记录,因为它是空白的: < a href =" javascript :;" < td height = 36 valign =" middle" class =" small_img" onmouseover =" showBigImage(''imagescript.asp? path = images / portable_stage.jpg& width = 250'',''images / portable_stage.jpg' ','''''"< img src =" imagescript.asp?path = images / portable_stage.jpg& width = 36"边界=" 0" ALT ="" /< / td< / a> < a href =" javascript :;" < td height = 36 valign =" middle" class =" small_img" onmouseover =" showBigImage(''imagescript.asp? path = images / seated_riserset.jpg& width = 250'',''images / seated_riserset.jpg' ',''便携式舞台配置使用9个单位 3英尺x 8英尺平台,3个不同高度'')< img src =" imagescript.asp?path = images / seated_riserset.jpg& width = 36" border =" 0" ALT ="" /< / td< / a> < a href =" javascript :;" < td height = 36 valign =" middle" class =" small_img" onmouseover =" showBigImage(''imagescript.asp? path = images / Stageset.jpg& width = 250'',''images / Stageset.jpg'',''Portable 阶段配置使用16个单位的4英尺x 8英尺平台'')> < img src =" imagescript.asp?path = images / Stageset。 jpg& width = 36" border =" 0" ALT ="" /< / td< / a> < a href =" javascript :;" < td height = 36 valign =" middle" class =" small_img" onmouseover =" showBigImage(''imagescript.asp? path = images / Runset.jpg& width = 250'',''images / Runset.jpg'',''Portable stage runset configuration'')"< img src =" imagescript.asp?path = images / Runset.jpg& width = 36"边界=" 0" ALT ="" /< / td< / a> 由于此问题,缩略图图像被鼠标移除后,标题文本不会显示此 第一张图像记录。您可以 查看此页面示例 www.canchair/new_web_prod...ctFamilySub=10
解决方案于2008年8月22日在microsoft.public.inetserver.asp.general写道: 我已经在javascript论坛上发布了这个问题,因为它包含 javascript代码然而它被认为是一个asp问题。
下面没有ASP代码。
以下主题部分javascript代码包含该函数 showBigImage(isource,bigImage,header)函数调用讨论: var currentImage; 函数showBigImage(isource,bigImage ,标题){ var theImage = document.getElementById(''largeimage''); theImage.src = isource; currentImage = bigImage; document.getElementById(''photoHeader'').innerHTML = header; document.getElementById(''largeimage'').alt = header;这是客户端代码,所以你不在话题。
以下呈现的循环记录集代码说明 " header"这个showBigImage的参数(isource,bigImage,header) 函数调用只能呈现为 RECORDSET的第一个记录,因为它是空白的: < a href =" javascript :;" < td height = 36 valign =" middle" class =" small_img" onmouseover =" showBigImage(''imagescript.asp? path = images / portable_stage.jpg& width = 250'',''images / portable_stage.jpg' ','''''"< img src =" imagescript.asp?path = images / portable_stage.jpg& width = 36"边界=" 0" ALT ="" /< / td< / a> < a href =" javascript :;" < td height = 36 valign =" middle" class =" small_img" onmouseover =" showBigImage(''imagescript.asp? path = images / seated_riserset.jpg& width = 250'',''images / seated_riserset.jpg' ',''便携式舞台配置使用9个单位 3英尺x 8英尺平台,3个不同高度'')< img src =" imagescript.asp?path = images / seated_riserset.jpg& width = 36" border =" 0" ALT ="" /< / td< / a> < a href =" javascript :;" < td height = 36 valign =" middle" class =" small_img" onmouseover =" showBigImage(''imagescript.asp? path = images / Stageset.jpg& width = 250'',''images / Stageset.jpg'',''Portable 阶段配置使用16个单位的4英尺x 8英尺平台'')> < img src =" imagescript.asp?path = images / Stageset。 jpg& width = 36" border =" 0" ALT ="" /< / td< / a> < a href =" javascript :;" < td height = 36 valign =" middle" class =" small_img" onmouseover =" showBigImage(''imagescript.asp? path = images / Runset.jpg& width = 250'',''images / Runset.jpg'',''Portable stage runset configuration'')"< img src =" imagescript.asp?path = images / Runset.jpg& width = 36"边界=" 0" ALT ="" /< / td< / a> 由于这个问题,一旦缩略图图像是这个 第一张图像记录,标题文字就不会显示喵喵叫。您可以 查看此页面示例 www.canchair/new_web_prod...tID=198&Produc tFamily = 1& ProductFamilySub = 10 - Evertjan。 荷兰。 (请更改x'我的电子邮件地址中的点数。ha**@canchair 写道: 我已经在javascript论坛上发布了这个问题,因为它包含 javascript代码但是它被认为是一个asp问题。
鉴于此处没有显示服务器端代码,我不确定 导致无论是谁相信这是一个ASP问题。 如果它是一个asp问题,那么我们没有机会调试它,而不会看到包含在服务器端代码中的。 ..imagescript.asp - Microsoft MVP - ASP / ASP.NET 请回复新闻组。我的From 标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。
7月22日,4:24 * pm,Bob Barrows [ MVP] QUOT; < reb01 ... @ NOyahoo.SPAMcom> 写道: h ... @ canchair写道: 我已经在javascript论坛上发布了这个问题,因为它包含了 javascript代码但是它被认为是一个asp问题。
鉴于此处没有显示服务器端代码,我不确定 导致无论是谁相信这是一个ASP问题。 如果它是一个asp问题,那么我们没有机会调试它,而不会看到包含在服务器端代码中的。 ..imagescript.asp - Microsoft MVP - ASP / ASP.NET 请回复新闻组。我的From 标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。
你是绝对正确的。我应该已经发布了asp代码,在这里它 是: < a href =" javascript : ;"类= QUOT; small_img" > < td height = 36 valign =" middle" class =" small_img" onmouseover =" showBigImage(''imagescript.asp?path =<%= images.Fields.Item(" url_img")。Value%>& width = 250'', ''<%= images.Fields.Item(" url_img")。Value%>'',''< %=(图片。 Fields.Item(" alt_img")。Value)%>'')">< img src =" imagescript.asp?path =<%= images.Fields .Item(" url_img").Value %>& width = 36"边界=" 0" ALT ="" /< / td> < / a>
I have posted this question on a javascript forum as it contains javascript code however it was believed to be an asp issue. The following head section javascript code contains the function showBigImage( isource,bigImage,header ) function call of discussion: var currentImage; function showBigImage( isource,bigImage,header ) { var theImage = document.getElementById( ''largeimage'' ); theImage.src = isource; currentImage = bigImage; document.getElementById( ''photoHeader'' ).innerHTML=header; document.getElementById( ''largeimage'' ).alt=header; The following rendered looped recordset code illustrates how the "header" parameter of this showBigImage( isource,bigImage,header ) function call does not render ONLY FOR THE FIRST RECORD OF THE RECORDSET as it is blank: <a href= "javascript:;" <td height=36 valign="middle" class="small_img" onmouseover="showBigImage( ''imagescript.asp? path=images/portable_stage.jpg&width=250'',''images/ portable_stage.jpg'','''' )"<img src="imagescript.asp?path=images/ portable_stage.jpg&width=36" border="0" alt="" /</td</a> <a href= "javascript:;" <td height=36 valign="middle" class="small_img" onmouseover="showBigImage( ''imagescript.asp? path=images/seated_riserset.jpg&width=250'',''images/ seated_riserset.jpg'',''Portable stage configuration using 9 units of the 3 ft x 8 ft platforms in 3 different heights'' )"<img src="imagescript.asp?path=images/seated_riserset.jpg&width=36" border="0" alt="" /</td</a> <a href= "javascript:;" <td height=36 valign="middle" class="small_img" onmouseover="showBigImage( ''imagescript.asp? path=images/Stageset.jpg&width=250'',''images/Stageset.jpg'',''Portable stage configuration using 16 units of the 4 ft x 8 ft platforms'' )"> <img src="imagescript.asp?path=images/Stageset.jpg&width=36" border="0" alt="" /</td</a> <a href= "javascript:;" <td height=36 valign="middle" class="small_img" onmouseover="showBigImage( ''imagescript.asp? path=images/Runset.jpg&width=250'',''images/Runset.jpg'',''Portable stage runset configuration'' )"<img src="imagescript.asp?path=images/ Runset.jpg&width=36" border="0" alt="" /</td</a> Because of this problem, the caption text does not display for this first image record once the thumbnail images are moused over. You can view this page example at www.canchair/new_web_prod...ctFamilySub=10
解决方案 wrote on 22 jul 2008 in microsoft.public.inetserver.asp.general: I have posted this question on a javascript forum as it contains javascript code however it was believed to be an asp issue.There is no ASP code in the below.
The following head section javascript code contains the function showBigImage( isource,bigImage,header ) function call of discussion: var currentImage; function showBigImage( isource,bigImage,header ) { var theImage = document.getElementById( ''largeimage'' ); theImage.src = isource; currentImage = bigImage; document.getElementById( ''photoHeader'' ).innerHTML=header; document.getElementById( ''largeimage'' ).alt=header;This is clientside code, so you are off topic.
The following rendered looped recordset code illustrates how the "header" parameter of this showBigImage( isource,bigImage,header ) function call does not render ONLY FOR THE FIRST RECORD OF THE RECORDSET as it is blank: <a href= "javascript:;" <td height=36 valign="middle" class="small_img" onmouseover="showBigImage( ''imagescript.asp? path=images/portable_stage.jpg&width=250'',''images/ portable_stage.jpg'','''' )"<img src="imagescript.asp?path=images/ portable_stage.jpg&width=36" border="0" alt="" /</td</a> <a href= "javascript:;" <td height=36 valign="middle" class="small_img" onmouseover="showBigImage( ''imagescript.asp? path=images/seated_riserset.jpg&width=250'',''images/ seated_riserset.jpg'',''Portable stage configuration using 9 units of the 3 ft x 8 ft platforms in 3 different heights'' )"<img src="imagescript.asp?path=images/seated_riserset.jpg&width=36" border="0" alt="" /</td</a> <a href= "javascript:;" <td height=36 valign="middle" class="small_img" onmouseover="showBigImage( ''imagescript.asp? path=images/Stageset.jpg&width=250'',''images/Stageset.jpg'',''Portable stage configuration using 16 units of the 4 ft x 8 ft platforms'' )"> <img src="imagescript.asp?path=images/Stageset.jpg&width=36" border="0" alt="" /</td</a> <a href= "javascript:;" <td height=36 valign="middle" class="small_img" onmouseover="showBigImage( ''imagescript.asp? path=images/Runset.jpg&width=250'',''images/Runset.jpg'',''Portable stage runset configuration'' )"<img src="imagescript.asp?path=images/ Runset.jpg&width=36" border="0" alt="" /</td</a> Because of this problem, the caption text does not display for this first image record once the thumbnail images are moused over. You can view this page example at www.canchair/new_web_prod...tID=198&Produc tFamily=1&ProductFamilySub=10-- Evertjan. The Netherlands. (Please change the x''es to dots in my emailaddress)
ha**@canchair wrote: I have posted this question on a javascript forum as it contains javascript code however it was believed to be an asp issue.Given that there is no server-side code shown here, I''m not sure what led whoever it was to believe that this was an ASP issue. If it is an asp issue then we have no chance of debugging it without seeing the server-side code contained in ...imagescript.asp -- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don''t check it very often. You will get a quicker response by posting to the newsgroup.
On Jul 22, 4:24*pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom> wrote: h...@canchair wrote: I have posted this question on a javascript forum as it contains javascript code however it was believed to be an asp issue.Given that there is no server-side code shown here, I''m not sure what led whoever it was to believe that this was an ASP issue. If it is an asp issue then we have no chance of debugging it without seeing the server-side code contained in ...imagescript.asp -- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don''t check it very often. You will get a quicker response by posting to the newsgroup.
You are absolutely right. I should''ve posted the asp code and here it is: <a href= "javascript:;" class="small_img" > <td height=36 valign="middle" class="small_img" onmouseover="showBigImage( ''imagescript.asp?path=<%= images.Fields.Item( "url_img" ).Value %>&width=250'',''<%= images.Fields.Item( "url_img" ).Value %>'',''< %=(images.Fields.Item("alt_img").Value)%>'' )"><img src="imagescript.asp?path=<%= images.Fields.Item( "url_img" ).Value %>&width=36" border="0" alt="" /</td> </a>
更多推荐
asp代码不会为循环记录集中的第一个记录呈现
发布评论