私はこれを "ウェルカムダイアログ"のためにやっています。具体的なクリックトリガーリンクを作る方法は他に何かしますか?
この機能は、特定の<div>
をクリックしたときに聞き取り、別のWebページに送信するか、歓迎<div>
を閉じます。
しかし、私はそれが "近い"機能のためには機能しないと思う。 HTMLの頭の中で
マイスクリプト:HTML本体内
function hideWell() {
if (("welSolu").on('click hover')) {
location.href = "http://www.cnn.com";
}
document.getElementById("welScreen").style.visibility = "hidden";
document.getElementById("welScreen").style.display = "none";
document.querySelector("html").style.overflow = "visible";
}
マイ<div>
S:
<div id="welScreen" onmousedown="hideWell()">
<div id="welSolu">to go another page click here</div>
</div>
'( "welSoluは")'有効ではありません... on()のドキュメントを見てください。 – epascarello