ITeye博客

Js Jquery

共 3 篇文章

Js字符串替换

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>Js字符串替换oyzd</TITLE> </HEAD> <BODY> LOVE LIFE ! LOVE JAVA ... 435,567,25.00 <script> var s = "LOVE LIFE ! LOVE JAVA ..."; var l = "435,567,25.00"; alert(s.replace(/\LOVE/g, "爱")); alert(l.replace(/\,/g, "")); </scrip…

2013-01-29 09:19 · Js Jquery · JS · 字符串 · js函数 · 字符串转换

div固定位置,不随滚动条滚动

<html> <head> <title>div固定位置,不随滚动条滚动</title> <style type="text/css"> html,body { overflow:hidden; margin:0px; width:100%; height:100%; } .virtual_body { width:100%; height:100%; overflow-y:scroll; overflow-x:auto; } .fixed_div { position:absolute; z-index:2008; bottom:20px; left:40px; width:800px; …

2013-01-29 09:13 · Js Jquery · 滚动条

JS不间断无缝滚动 (兼容火狐和IE)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>向上下左右不间断无缝滚动图片的效果(兼容火狐和IE)/title> </head> <body> …

2013-01-29 09:08 · Js Jquery · JS特效 · 滚动图片