日期:2014-05-16 浏览次数:20408 次
$(document).ready(function(){ $.getScript("miaov.js"); $("body").load("miaov_demo.html"); });
<html> <head> <link rel="stylesheet" type="text/css" href="miaov_style.css" /> <script type="text/javascript" src="miaov.js"></script> </head> <body> <div id="div1"> <a href="http://www.miaov.com">JS课程</a> <a href="http://www.miaov.com/course_outline_1.html.php" class="red">教程</a> <a href="http://www.miaov.com">试听</a> <a href="http://www.miaov.com">精品</a> <a href="http://www.miaov.com" class="blue">妙味课堂</a> <a href="http://blog.miaov.com/722.html">SEO</a> <a href="http://www.miaov.com" class="red">特效</a> <a href="http://www.miaov.com/course.html.php" class="yellow">JavaScript</a> <a href="http://www.miaov.com/course_detail_1.html.php">miaov</a> <a href="http://www.miaov.com/course_detail_2.html.php" class="red">CSS</a> <a href="http://www.miaov.com/course_detail_3.html.php">求职</a> <a href="http://www.miaov.com/course_detail_2.html.php" class="blue">面试题</a> <a href="http://www.miaov.com/contact.html.php">继承</a> <a href="http://www.miaov.com/" class="red">妙味课堂</a> <a href="http://www.miaov.com/about.html.php" class="blue">OOP</a> <a href="http://www.miaov.com/work.html.php">XHTML</a> <a href="http://www.miaov.com/message.html.php" class="blue">setInterval</a> <a href="http://blog.miaov.com/">W3C</a> <a href="http://blog.miaov.com/716.html">石川</a> <a href="http://www.miaov.com/" class="yellow">妙味课堂</a> <a href="http://blog.miaov.com/676.html">blue</a> </div> <p>妙味课堂:<a href="http://www.miaov.com/">http://www.miaov.com</a></p> </body> </html>
var radius = 120; var dtr = Math.PI/180; var d=300; var mcList = []; var active = false; var lasta = 1; var lastb = 1; var distr = true; var tspeed=10; var size=250; var mouseX=0; var mouseY=0; var howElliptical=1; var aA=null; var oDiv=null; window.onload=function () { var i=0; var oTag=null; oDiv=document.getElementById('div1'); aA=oDiv.getElementsByTagName('a'); for(i=0;i<aA.length;i++) { oTag={}; oTag.offsetWidth=aA[i].offsetWidth; oTag.offsetHeight=aA[i].offsetHeight; mcList.push(oTag); } sineCosine( 0,0,0 ); positionAll(); oDiv.onmouseover=function () { active=true; }; oDiv.onmouseout=function () { active=false; };