首页上一页 1 下一页尾页 1 条记录 1/1页
请老师们帮帮忙:页面添加了JS+Flash的新闻图片切换代码后,控件的ToolTip内容显示不出来!
发表在ASP.NET图书答疑
2009-08-21
是否精华
是
否
版块置顶:
是
否
代码如下:
<tr style="color: #000000">
<td style="width: 144px; height: 33px">
<table border="0" cellpadding="0" cellspacing="0" style="width: 140px; height: 31px">
<tr>
<td style="background-image: url(Images/yfgl.jpg); text-align: right">
<table id="Table7" border="0" cellpadding="0" cellspacing="0" height="20" style="width: 104px"
width="100">
<tr>
<td align="left" style="width: 104%; text-align: left" valign="bottom">
<font color="#008000" size="2"> <asp:HyperLink ID="HyperLink3" runat="server"
EnableViewState="False" NavigateUrl="http://10.67.1.9:8088/" Style="text-align: left"
Target="_blank" ToolTip="收、发本单位的电子公文,单击鼠标进入!">用户管理系统</asp:HyperLink></font></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td style="width: 144px; height: 33px">
<table border="0" cellpadding="0" cellspacing="0" style="width: 140px; height: 31px">
<tr>
<td style="height: 10px; text-align: right">
</td>
</tr>
</table>
</td>
<td style="width: 144px; height: 33px">
</td>
<td style="width: 144px; height: 33px">
</td>
<td style="width: 144px; height: 33px">
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-top-width: 1px; border-left-width: 1px;
border-left-color: dimgray; border-bottom-width: 1px; border-bottom-color: dimgray;
width: 240px; border-top-color: dimgray; height: 220px; border-right-width: 1px;
border-right-color: dimgray">
<tr>
<td style="text-align: center">
<iframe frameborder="0" height="220" scrolling="no" src="Imagenews.aspx"
width="240"></iframe>
</td>
</tr>
</table>
页面加载了"Imagenews.aspx"的新闻图片切换后,鼠标移到HyperLink3上后Tooltip提示内容显示不出来!
Imagenews.aspx代码如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Imagenews.aspx.cs" Inherits="Default2" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<HEAD>
<TITLE>使用javascript脚本循环播放图片</TITLE>
<style type="text/css">
*
{
margin:0;
padding:0px;
}
</style>
</HEAD>
<BODY style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; font-size: 9pt; color: #cc0000;">
<SCRIPT type=text/javascript>
var focus_width=240
var focus_height=195
var text_height=22
var swf_height = focus_height+text_height
var pics='<%# Imageurl %>'
var links='<%# xwurl %>'
var texts='<%# Xwtext %>'
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#DDDDCC">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="images/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</SCRIPT>
</BODY></HTML>
请老师们指点指!
<tr style="color: #000000">
<td style="width: 144px; height: 33px">
<table border="0" cellpadding="0" cellspacing="0" style="width: 140px; height: 31px">
<tr>
<td style="background-image: url(Images/yfgl.jpg); text-align: right">
<table id="Table7" border="0" cellpadding="0" cellspacing="0" height="20" style="width: 104px"
width="100">
<tr>
<td align="left" style="width: 104%; text-align: left" valign="bottom">
<font color="#008000" size="2"> <asp:HyperLink ID="HyperLink3" runat="server"
EnableViewState="False" NavigateUrl="http://10.67.1.9:8088/" Style="text-align: left"
Target="_blank" ToolTip="收、发本单位的电子公文,单击鼠标进入!">用户管理系统</asp:HyperLink></font></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td style="width: 144px; height: 33px">
<table border="0" cellpadding="0" cellspacing="0" style="width: 140px; height: 31px">
<tr>
<td style="height: 10px; text-align: right">
</td>
</tr>
</table>
</td>
<td style="width: 144px; height: 33px">
</td>
<td style="width: 144px; height: 33px">
</td>
<td style="width: 144px; height: 33px">
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-top-width: 1px; border-left-width: 1px;
border-left-color: dimgray; border-bottom-width: 1px; border-bottom-color: dimgray;
width: 240px; border-top-color: dimgray; height: 220px; border-right-width: 1px;
border-right-color: dimgray">
<tr>
<td style="text-align: center">
<iframe frameborder="0" height="220" scrolling="no" src="Imagenews.aspx"
width="240"></iframe>
</td>
</tr>
</table>
页面加载了"Imagenews.aspx"的新闻图片切换后,鼠标移到HyperLink3上后Tooltip提示内容显示不出来!
Imagenews.aspx代码如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Imagenews.aspx.cs" Inherits="Default2" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<HEAD>
<TITLE>使用javascript脚本循环播放图片</TITLE>
<style type="text/css">
*
{
margin:0;
padding:0px;
}
</style>
</HEAD>
<BODY style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; font-size: 9pt; color: #cc0000;">
<SCRIPT type=text/javascript>
var focus_width=240
var focus_height=195
var text_height=22
var swf_height = focus_height+text_height
var pics='<%# Imageurl %>'
var links='<%# xwurl %>'
var texts='<%# Xwtext %>'
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#DDDDCC">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="images/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</SCRIPT>
</BODY></HTML>
请老师们指点指!