如何自動點擊頁面加載鏈接?我一直在努力的年齡,但ID不起作用。jquery或javascript自動點擊
<link rel="stylesheet" type="text/css" href="leightbox.css" />
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="leightbox.js"></script>
</head>
<body>
<div class="content">
<p> <a href="#" class="lbOn" rel="pop02">Click here to activate leightbox popup.</a></p>
</div>
<!----------// POPUP (ON CLICK) //---------->
<div id="pop02" class="leightbox">
<a href="#" class="lbAction" rel="deactivate">×</a>
<div class="scrollbox">
<h1>This popup loads upon clicking a trigger link.</h1>
text</div>
</div>
</body>
你在標題和標籤中有jQuery,但在代碼中有Prototype。你想要什麼? – lonesomeday 2010-11-08 11:48:54
你可以通過$(document).ready(function(){})調用頁面加載時的點擊代碼 – XMen 2010-11-08 11:54:07
我正在嘗試someting其他那裏然後我忘了這就是爲什麼我有原型 – emre 2010-11-09 01:10:34