文章列表
 
您正在查看 "Javascript" 分类下的文章

2008-10-30 10:20

设置或获取对象指定的文件名或路径。
<script>
alert(window.location.pathname)
</script>

设置或获取整个 URL 为字符串。
<script>

alert(window.location.href);
</script>
设置或获取与 URL 关联的端口号码。
<script>
alert(window.location.port)
</script>

设置或获取 URL 的协议部分。
<script>
alert(window.location.protocol)
</script>

设置或获取 href 属性中在井号“#”

 
2008-06-05 1:51

a.html

<script>
function fortable1()
{
/****弹出模式对话框*****/
path = "table.html";
var gysArr = window.showModalDialog(path,"new","dialogHeight:500px;dialogWidth:450px;edge:Raised;center:Yes;help:No;resizable:no;status:no;");
if (gysArr != null){
var ss;
ss=gysArr.split("*");
document.all.a.value= ss[0];
document.all.b.value= ss[1];
}
}
</script>
</head>

 
2008-02-23 5:27

<!--脚本说明:
把如下代码加入<body>区域中:
-->
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function HowLongSince(startmonth, startdate, startyear) {
sdate=startdate;
smonth=startmonth-1;
syear=startyear;
var DaysInMonth = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
today = new Date()
var thisyear = today.getFullYear();
var thismonth = today.getMonth();
var thisdate = today.getDate();
mstart = new Da

 
2008-02-23 5:23
<html>
<head>
<style>
body
{
text-align:center;
}
.tab
{
width:432px;
height:208px;
margin:0 auto;
overflow:hidden;
border:1px solid #cccccc;
}
.menu,.menu li
{
margin:0;
padding:0;
height:24px;
list-style:none;
overflow:hidden;
text-align:center;
}
.menu
{
border-bottom:1px solid #cccccc;
}
.menu .default
{
width:84px;
float:left;
fo
 
2008-02-23 5:22
<html>
<head>
<style>
body
{
text-align:center;
}
.tab
{
width:422px;
height:208px;
margin:0 auto;
overflow:hidden;
border:1px solid #cccccc;
}
.menu,.menu li
{
margin:0;
padding:0;
height:24px;
list-style:none;
overflow:hidden;
text-align:center;
}
.menu
{
border-bottom:1px solid #cccccc;
}
.menu .default
{
width:84px;
float:left;
fo
 
   
 
 
文章分类
 
   
 
文章存档
 
     
 
最新文章评论
  

2两条滚动呢?
 

qinzhich@foxmail.com 麻烦发我一份吧,谢谢!
 

麻烦给我一份源码! 1529569508@qq.com
 

确实不行,希望楼主可以提供能解决的方案。
 

写得很到位
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu