移动鼠标实现链接文本框提示效果

<script>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();}</script>

效果图:

源代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0050)http://www.texotela.co.uk/code/jquery/tooltipdemo/ -->
<HTML lang=en xml:lang="en" xmlns=" http://www.w3.org/1999/xhtml"><HEAD><TITLE>::TexoTela:: jQuery - tooltip demo</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css>@import url( /css/default.css );
</STYLE>
<!--[if lt IE 7]>
<style type="text/css">
@import "/css/default_ie.css";
</style>
<![endif]-->
<SCRIPT src="TexoTela%20jQuery%20-%20tooltip%20demo_files/jquery-1.1.2.pack.js"
type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>
$(
function()
{
// drop shadow effect
var $outer = $("#outer");
var width = $outer.css("width");
var css = {
"margin": "12px auto",
"width": $outer.css("width"),
"background": "#073e8f"
}
$outer.css({"width": "auto", "left": -3, "top": -3, "margin": 0}).wrap(document.createElement("div")).parent().css(css).after(document.createElement("div"));
}
);
</SCRIPT>
<SCRIPT src="TexoTela%20jQuery%20-%20tooltip%20demo_files/jquery-tooltipdemo.js"
type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>
$(document).ready(
function()
{
$("a,input").ToolTipDemo("#fef", "#e00");
}

);
</SCRIPT>
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV id=outer>
<DIV id=header>
<H1>&nbsp;</H1></DIV>
<DIV id=inner><DIV id=contents>
<P>鼠标移动到这个链接和文本框上,看这个程序的效果</P>
<P><A
title="点击这个链接。。" href=" http://hi.baidu.com/mahaibao">连接</A>. Text box:
<INPUT title="输入你的姓名,但是不好使,只是一个演示">
</P>
<P>&nbsp;</P>
</DIV>
<DIV id=navigation></DIV></DIV>
</DIV>
</BODY></HTML>
由于代码过多,请去 http://dl2.csdn.net/down4/20070810/10170252823.rar 这里下载使用,,。。。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值