很晚了却还在奋斗的朋友,你好。看看这个,我为我一个关于按钮的问题(100)

Goodfriday01 2003-05-28 12:02:24
<span onclick="var strHref=window.location.href;
this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.sina.com.cn');">
<br/><input type="button" value="将本站设置为首页"></br>
</span>

你把他考到自己的机器上用用看 ,当你按下按钮时,弹出一个对话框问你是否把www.njcatv.net设置为主页。绝对安全

我现在想实现<input type="button" value="将页眉设置为某某某">应该怎么改相应的代码呢?谢谢!
...全文
53 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Goodfriday01 2003-05-28
  • 打赏
  • 举报
回复
思归,你不能回答我的问题就不要在这里浪费空间。
saucer 2003-05-28
  • 打赏
  • 举报
回复
网页的页眉??? you mean the 标题 of the page? if yes, you have to resort to some obscure ActiveX object to change the registry. I would suggest you not to try the trick, since most people hate that
Goodfriday01 2003-05-28
  • 打赏
  • 举报
回复
思归这位大哥,这个我还不会么?呵呵。其实我的目的是想更改网页的页眉,就是怎么改页眉!
saucer 2003-05-28
  • 打赏
  • 举报
回复
<input type="button" value="将本站设置为首页" onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.sina.com.cn');">
Goodfriday01 2003-05-28
  • 打赏
  • 举报
回复
小磊龙,你不知道什么叫页眉,页脚么?就是打印的时候正文上面、下面的东西啊。真笨。
stationxp 2003-05-28
  • 打赏
  • 举报
回复
这个 ...
过分了

思归大哥不要介意

87,987

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧