预览模式: 普通 | 列表

又一个去掉IE6下的横向滚动条的方法

解决方法:
设定iframe 样式,overflow-x: hidden,且将scrolling设为“yes”,这样的方法是有效的。
如果只定义scrolling为yes,在FF下会出现横向滚动。
例子如下:
<iframe src="#" scrolling="yes" style="overflow:visible;">
</iframe>
兼容IE6,IE7,FIFRFOX.其他的未测试。

查看更多...

Tags: IE6 横向滚动条

分类:Div/Css | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 613

javascript日期比较

代码如下:

程序代码 程序代码

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

查看更多...

Tags: javascript 日期比较 大小

分类:JS/Ajax | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 562

javascript实现div拖动

程序代码如下:

程序代码 程序代码

<!-- cursor表示鼠标的类型 -->
<div style="width:140px; height:140px; background-color:pink; cursor:pointer;" id="divBlock" onmousedown="divBlock_event_mousedown(arguments[0]);"></div>

<script>

查看更多...

Tags: javascript div拖动

分类:JS/Ajax | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 323

javascript倒数倒计时特效

代码如下:

程序代码 程序代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" lang="gb2312">
<meta http-equiv="Content-type" content="text/html;charset=gb2312" />
<head>

查看更多...

Tags: javascript 倒数 倒计时

分类:JS/Ajax | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 488

javascript遍历表单获取元素的值

示例如下

程序代码 程序代码

<!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=gb2312" />

查看更多...

Tags: javascript 遍历表单

分类:JS/Ajax | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1030

javascript长文章分页(示例)

例子如下:
这个方法需要设置CSS样式,定义高度,overflow:hidden不可以缺少
程序代码 程序代码

<html>
<head>
<style type="text/css">
<!--

查看更多...

Tags: javascript,长文章,分页

分类:JS/Ajax | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 422