

主要内容:
16、除去数组重复项
17、 操作cookie
18、获取坐标
payment
18、 判断浏览器类型
Js代码
jquery版
script>
19、判断是否开启cookie
20、 断是否开启JavaScript
// 方案 1 您关闭了JavaScript script> // 方案 2 您禁用了javascript。 您的Javascript是开启的
HTML
JavaScript 打字机 var charIndex = -1; var stringLength = 0; var inputText; function writeContent(init){ if(init){ inputText = document.getElementById('contentToWrite').innerHTML; } if(charIndex==-1){ charIndex = 0; stringLength = inputText.length; } var initString = document.getElementById('myContent').innerHTML; initStringinitString = initString.replace(/' || nextFourChars=='
'){ theChar = '
'; charIndex+=3; } initStringinitString = initString + theChar + "_"; document.getElementById('myContent').innerHTML = initString; charIndexcharIndex = charIndex/1 +1; if(charIndex%2==1){ document.getElementById('blink').style.display='none'; }else{ document.getElementById('blink').style.display='inline'; } if(charIndex<=stringLength){ setTimeout('writeContent(false)',150); }else{ blinkSpan(); } } var currentStyle = 'inline'; function blinkSpan(){ if(currentStyle=='inline'){ currentStyle='none'; }else{ currentStyle='inline'; } document.getElementById('blink').style.display = currentStyle; setTimeout('blinkSpan()',500); } script> sharejs.com Login : username
password : ******
Access is granted
实例2 (兼容IE,FX)
打字效果的带链接的新闻标题 最新内容:
22、简单打印
23、禁止右键
jquery 禁止右键 script>
24、防止垃圾邮件
25、复制(javaeye flash版)
26、阻止冒泡事件或阻止浏览器默认行为
27、关闭或跳转窗口时提示
function IsClose()
{
if(confirm("是否退出系统?"))
{
return true;
}
return false;
}
script>
--------------------------------------------------------
或者
28、用javascript获取地 址栏参数
//本页地址为: alert(document.location);
方法一:
方法二:
方法三:
29、计算停留的时间
30、div为空,只有背景时,背景自动增高
script>
iframe 版
