怎样使第一次浏览页面时链接失效? 可以通过js实现,在js中定义一个变量量,每次点该链接时判断变量的值,其他链接改变该值,本链接复原该值。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 JavaScript定义一个变量默认为false,只有其它的连接点过,设置为true。那个链接设置为<a href="#" OnClick="GoHref()">AAA</a>然后在GoHref时间里面判断一个变量的值function GoHref(){ if(isclick){ window.location.assign()}} 这次和上次点击之间有没有离开这个页面,比如就关闭窗口后又打开的,或者是这个窗口跳到其它页面后又回来的,如果有,那就要用cookie来保存状态了,没有的话只用页面变量就可以搞定.是做广告链接用的吧... 请问VisualSW,就像下面的页面<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"> </td> </tr> <tr> <td height="22" align="center" background="../../images/Index_74.jpg"><a href="Q001.htm" target="tbdx">目标要求</a></td> </tr> <tr> <td align="center"> </td> </tr> <tr> <td height="22" align="center" background="../../images/Index_74.jpg"><a href="te001.htm" target="tbdx">质疑解疑</a></td> </tr> <tr> <td align="center"> </td> </tr> <tr> <td height="22" align="center" background="../../images/Index_74.jpg"><a href="E001.htm" target="tbdx">例题精解</a></td> </tr> <tr> <td align="center"> </td> </tr> <tr> <td height="22" align="center" background="../../images/Index_74.jpg"><a href="T001/index.htm" target="tbdx">反馈练习</a></td> </tr> <tr> <td align="center"> </td> </tr> <tr> <td height="22" align="center" background="../../images/Index_74.jpg"><a href="A001.htm" target="tbdx">相关知识</a></td> </tr> <tr> <td align="center"> </td> </tr> <tr> <td height="22" align="center" background="../../images/Index_74.jpg"><a href="javascript:opencenre()">发表评论</a></td> </tr> <tr> <td height="22" align="center"> </td> </tr> <tr> <td height="22" align="center" background="../../images/Index_74.jpg"><span onClick="OpenSWF('../../swf/SudyNote.swf')" style="cursor:hand">学习笔记</span></td> </tr> </table>要是“目标要求”第一次无效,其它点击后它生效,如何做,我没有明白您的意思。谢谢! 一个很菜的JS赋值 web页面控件的详细测试用例, 点击单选按钮如何实现页面跳转? 求一个正则表达式(在线求答) 新手提问,关于函数赋值为null 的问题 用event实现提示,但是位置会乱掉 怎么用 javascript改变一个text的 背景颜色 ★★★安装InterDev后,JavaScript程序调试出现奇怪错误提示★★★ html2canvas 截取某一个DIV里面画的图,但是截取下来里面的内容重影,求大神解决 JS代码如何实现网页中动态加载jpg图片 怎样取的td元素位置(top;left),或者td元素的width,谢谢大家了,很重要!! 问一个简单的问题
那个链接设置为<a href="#" OnClick="GoHref()">AAA</a>
然后在GoHref时间里面判断一个变量的值
function GoHref()
{
if(isclick)
{
window.location.assign()
}
}
是做广告链接用的吧...
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"> </td>
</tr>
<tr>
<td height="22" align="center" background="../../images/Index_74.jpg"><a href="Q001.htm" target="tbdx">目标要求</a></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td height="22" align="center" background="../../images/Index_74.jpg"><a href="te001.htm" target="tbdx">质疑解疑</a></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td height="22" align="center" background="../../images/Index_74.jpg"><a href="E001.htm" target="tbdx">例题精解</a></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td height="22" align="center" background="../../images/Index_74.jpg"><a href="T001/index.htm" target="tbdx">反馈练习</a></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td height="22" align="center" background="../../images/Index_74.jpg"><a href="A001.htm" target="tbdx">相关知识</a></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td height="22" align="center" background="../../images/Index_74.jpg"><a href="javascript:opencenre()">发表评论</a></td>
</tr>
<tr>
<td height="22" align="center"> </td>
</tr>
<tr>
<td height="22" align="center" background="../../images/Index_74.jpg"><span onClick="OpenSWF('../../swf/SudyNote.swf')" style="cursor:hand">学习笔记</span></td>
</tr>
</table>
要是“目标要求”第一次无效,其它点击后它生效,如何做,我没有明白您的意思。谢谢!