فهرست آینده جمعه 88/6/27 , 12:43 ع رضاالهی • نظر موضوع ورود کدهای موزیک نمایش کدهای لینک نمایش کدهای تصاویر نمایش کدهای موس نمایش کدهای متن و فرم نمایش کدهای ساعت و تقویم نمایش کدهای کنتور و آمار نمایش کدهای پس زمینه نمایش کدهای یاهو و متور های جستجو نمایش آموزش نمایش کدهای جالب نمایش قالب ها نمایش طراحی لوگو و قالب نمایش معرفی نرم افزار نمایش دعوتنامه نمایش
نمایش تصاویر به صورت Slide جمعه 88/6/27 , 12:43 ع رضاالهی • نظر ابتدا این کد را در قسمت <head> قرار دهید< language="Java"> //Preloaded slideshow - By Jason Moon //For this and more //Visit http://www.dynamicdrive.com // PUT THE URL"S OF YOUR IMAGES INTO THIS ARRAY... var Slides = new Array("image1.gif","image2.gif","image3.gif"); // DO NOT EDIT BELOW THIS LINE! function CacheImage(ImageSource) { // TURNS THE STRING INTO AN IMAGE var Image = new Image(); Image.src = ImageSource; return Image; } function ShowSlide(Direction) { if (SlideReady) { NextSlide = CurrentSlide + Direction; // THIS WILL DISABLE THE BUTTONS (IE-ONLY) document.SlideShow.Previous.disabled = (NextSlide == 0); document.SlideShow.Next.disabled = (NextSlide == (Slides.length-1)); if ((NextSlide >= 0) && (NextSlide < Slides.length)) { document.images["Screen"].src = Slides[NextSlide].src; CurrentSlide = NextSlide++; Message = "Picture " + (CurrentSlide+1) + " of " + Slides.length; self.defaultStatus = Message; if (Direction == 1) CacheNextSlide(); } return true; } } function Download() { if (Slides[NextSlide].complete) { SlideReady = true; self.defaultStatus = Message; } else setTimeout("Download()", 100); // CHECKS DOWNLOAD STATUS EVERY 100 MS return true; } function CacheNextSlide() { if ((NextSlide < Slides.length) && (typeof Slides[NextSlide] == "string")) { // ONLY CACHES THE IMAGES ONCE SlideReady = false; self.defaultStatus = "Downloading next picture..."; Slides[NextSlide] = CacheImage(Slides[NextSlide]); Download(); } return true; } function StartSlideShow() { CurrentSlide = -1; Slides[0] = CacheImage(Slides[0]); SlideReady = true; ShowSlide(1); } </>سپس این کد را در قسمت <BODY> قرار دهید<form name="SlideShow"> <table> <tr> <td colspan=2><img name="Screen" width=108 height=135></td> </tr> <tr> <td><input type="button" name="Previous" value=" << " onClick="ShowSlide(-1)"></td> <td align="right"><input type="button" name="Next" value=" >> " onClick="ShowSlide(1)"></td> </table> </form>
زوم 4 متن متغیر جمعه 88/6/27 , 12:43 ع رضاالهی • نظر < LANGUAGE="Java"> <!-- Begin var speed = 50; var cycledelay = 2000; var maxsize = 28; var x = 0; var y = 0; var themessage, size; var esize = "</font>"; function initArray() { this.length = initArray.arguments.length; for (var i = 0; i < this.length; i++) { this[i] = initArray.arguments[i]; } } var themessage2 = new initArray( "HI", "WELCOME", "TO MY", "WEBLOG" ); if(navigator.appName == "Netscape") document.write("<layer id="wds"></layer><br>"); if (navigator.appVersion.indexOf("MSIE") != -1) document.write("<span id="wds"></span><br>"); function upwords(){ themessage = themessage2[y]; if (x < maxsize) { x++; setTimeout("upwords()",speed); } else setTimeout("downwords()",cycledelay); if(navigator.appName == "Netscape") { size = "<font point-size=""+x+"pt">"; document.wds.document.write(size+"<center>"+themessage+"</center>"+esize); document.wds.document.close(); } if (navigator.appVersion.indexOf("MSIE") != -1){ wds.innerHTML = "<center>"+themessage+"</center>"; wds.style.fontSize=x+"px" } } function downwords(){ if (x > 1) { x--; setTimeout("downwords()",speed); } else { setTimeout("upwords()",cycledelay); y++; if (y > themessage2.length - 1) y = 0; } if(navigator.appName == "Netscape") { size = "<font point-size=""+x+"pt">"; document.wds.document.write(size+"<center>"+themessage+"</center>"+esize); document.wds.document.close(); } if (navigator.appVersion.indexOf("MSIE") != -1){ wds.innerHTML = "<center>"+themessage+"</center>"; wds.style.fontSize=x+"px" } } setTimeout("upwords()",speed); // End --> </> </body> </html>
پرواز متن جمعه 88/6/27 , 12:43 ع رضاالهی • نظر <STYLE type=text/css>#supertext { LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: hidden } </STYLE> < language="Java1.2"> var thecontent="<h2><font color="#0000FF">Welcome to my weblog!</font></h2>" var hidetimer=""; var BallSpeed = 5; var contentWidth; var contentHeight; var maxBallSpeed = 50; var xMax; var yMax; var xPos = 0; var yPos = 0; var xDir = "right"; var yDir = "down"; var superballRunning = true; var tempBallSpeed; var currentBallSrc; var newXDir; var newYDir; function initializeBall() { if (document.all) { xMax = document.body.clientWidth yMax = document.body.clientHeight document.all("supertext").style.visibility = "visible"; contentWidth=supertext.offsetWidth contentHeight=supertext.offsetHeight } else if (document.layers) { xMax = window.innerWidth; yMax = window.innerHeight; contentWidth=document.supertext.document.width contentHeight=document.supertext.document.height document.layers["supertext"].visibility = "show"; } setTimeout("moveBall()",400); if (hidetimer!="") setTimeout("hidetext()",hidetimer) } function moveBall() { if (superballRunning == true) { calculatePosition(); if (document.all) { document.all("supertext").style.left = xPos + document.body.scrollLeft; document.all("supertext").style.top = yPos + document.body.scrollTop; } else if (document.layers) { document.layers["supertext"].left = xPos + pageXOffset; document.layers["supertext"].top = yPos + pageYOffset; } animatetext=setTimeout("moveBall()",20); } } function calculatePosition() { if (xDir == "right") { if (xPos > (xMax - contentWidth - BallSpeed)) { xDir = "left"; } } else if (xDir == "left") { if (xPos < (0 + BallSpeed)) { xDir = "right"; } } if (yDir == "down") { if (yPos > (yMax - contentHeight - BallSpeed)) { yDir = "up"; } } else if (yDir == "up") { if (yPos < (0 + BallSpeed)) { yDir = "down"; } } if (xDir == "right") { xPos = xPos + BallSpeed; } else if (xDir == "left") { xPos = xPos - BallSpeed; } else { xPos = xPos; } if (yDir == "down") { yPos = yPos + BallSpeed; } else if (yDir == "up") { yPos = yPos - BallSpeed; } else { yPos = yPos; } } function hidetext(){ if (document.all) supertext.style.visibility="hidden" else if (document.layers) document.supertext.visibility="hide" clearTimeout(animatetext) } if (document.all||document.layers){ document.write("<span id="supertext"><nobr>"+thecontent+"</nobr></span>") window.onload = initializeBall; window.onresize = new Function("window.location.reload()"); } </></body> </html>
هدفگیر به دنبال موس جمعه 88/6/27 , 12:43 ع رضاالهی • نظر <style> <!-- #leftright, #topdown{ position:absolute; left:0; top:0; width:1px; height:1px; layer-background-color:red; background-color:red; z-index:100; font-size:1px; } --></style> <div id="leftright" style="width:expression(document.body.clientWidth-2)"> </div> <div id="topdown" style="height:expression(document.body.clientHeight-2)"> </div> < language="Java1.2"> <!-- if (document.all&&!window.print){ leftright.style.width=document.body.clientWidth-2 topdown.style.height=document.body.clientHeight-2 } else if (document.layers){ document.leftright.clip.width=window.innerWidth document.leftright.clip.height=1 document.topdown.clip.width=1 document.topdown.clip.height=window.innerHeight } function followmouse1(){ //move cross engine for IE 4+ leftright.style.pixelTop=document.body.scrollTop+event.clientY+1 topdown.style.pixelTop=document.body.scrollTop if (event.clientX<document.body.clientWidth-2) topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1 else topdown.style.pixelLeft=document.body.clientWidth-2 } function followmouse2(e){ //move cross engine for NS 4+ document.leftright.top=e.y+1 document.topdown.top=pageYOffset document.topdown.left=e.x+1 } if (document.all) document.onmousemove=followmouse1 else if (document.layers){ window.captureEvents(Event.MOUSEMOVE) window.onmousemove=followmouse2 } function regenerate(){ window.location.reload() } function regenerate2(){ setTimeout("window.onresize=regenerate",400) } if ((document.all&&!window.print)||document.layers) window.onload=regenerate2 //--> </>