📄 menu_rollover.js
字号:
document.write("<div id='menutip'></div>");//$Id: //IT/main/code/apps/web/static_web/deployment/common/javascript/global/us/menu_rollover/menu_rollover.js#3 $//Pop up information box II (Mike McGrath (mike_mcgrath@lineone.net, http://website.lineone.net/~mike_mcgrath))//Permission granted to Dynamicdrive.com to include script in archive//For this and 100's more DHTML scripts, visit http://dynamicdrive.comXoffset=195; // modify these values to ...Yoffset= -10; // change the popup position.var agent = navigator.userAgent.toLowerCase();var old,skn,iex=(document.all),yyy=0;var ns4=document.layersvar ns6=document.getElementById&&!document.allvar ie4_win=document.all&&(agent.indexOf("win")!=-1);if (ns4)skn=document.menutipelse if (ns6)skn=document.getElementById("menutip").styleelse if (ie4_win)skn=document.all.menutip.styleif(ns4)document.captureEvents(Event.MOUSEMOVE);else{skn.visibility="visible"skn.display="none"}document.onmousemove=get_mouse;function popup(msg){var content="<TABLE WIDTH=200 BORDER=1 BORDERCOLOR='#697033' CELLPADDING=2 CELLSPACING=0 BGCOLOR=#F2F2E7><TD ALIGN=left><span class='popup'>"+msg+"</span></TD></TABLE>";yyy=Yoffset; if(ns4){skn.document.write(content);skn.document.close();skn.visibility="visible"} if(ns6){document.getElementById("menutip").innerHTML=content;skn.display=''} if(ie4_win){document.all("menutip").innerHTML=content;skn.display=''}}function get_mouse(e){var x=(ns4||ns6)?e.pageX:event.x+document.body.scrollLeft;skn.left=Xoffset;var y=(ns4||ns6)?e.pageY:event.y+document.body.scrollTop;skn.top=y+yyy;}function kill(){yyy=0;if(ns4){skn.visibility="hidden";}else if (ns6||ie4_win)skn.display="none"}function GetCampaign (){ var cookieCampaignID = GetCookie('cookieCampaignID'); if (cookieCampaignID == null) { document.writeln(''); } else if (cookieCampaignID == 'lv61') { CreateCode ("campaign_logo.jpg", "campaign_spacer.gif", "campaign_nav.jpg", "upgrade.htm", "learn.htm", "try.htm", "buy.htm", "home.htm"); } else if (cookieCampaignID == 'juicebox') { CreateCode ("campaign_juiceboxlogo.jpg", "campaign_spacer.gif", "campaign_nav.jpg", "upgrade.htm", "learn.htm", "try.htm", "buy.htm", "home.htm"); }}function CreateCode (left_image, spacer_image, nav_image, url1, url2, url3, url4, url5) { document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="100%">'); document.writeln(' <tr>'); document.writeln(' <td width="196"><img src="/images/global/us/' + left_image + '" width="196" height="26" border="0" alt=""></td>'); document.writeln(' <td width="100%" background="/images/global/us/' + spacer_image + '"><img src="/images/global/us/invis.gif" width="1" height="26" border="0" alt=""></td>'); document.writeln(' <td width="247"><img src="/images/global/us/' + nav_image + '" width="247" height="26" border="0" alt="" usemap="#campaign_nav"></td>'); document.writeln(' </tr>'); document.writeln(' <tr>'); document.writeln(' <td colspan="3"><img src="/images/global/us/invis.gif" width="1" height="5" border="0" alt=""></td>'); document.writeln(' </tr>'); document.writeln('</table>'); document.writeln('<map name="campaign_nav">'); document.writeln('<area shape="rect" coords="218,1,244,24" href="' + url5 + '">'); document.writeln('<area shape="rect" coords="165,2,215,22" href="' + url4 + '">'); document.writeln('<area shape="rect" coords="114,3,162,23" href="' + url3 + '">'); document.writeln('<area shape="rect" coords="64,2,113,22" href="' + url2 + '">'); document.writeln('<area shape="rect" coords="2,2,63,24" href="' + url1 + '">'); document.writeln('</map>');} function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr));}function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null;}function SetCookie (name, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" +expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : "");}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -