کدهای کاربردی زبان پی اچ پی(php Code)

نویسنده Amir Shahbazzadeh, بعد از ظهر 23:00:54 - 07/24/11

« آموزش جامع ++c | آژاکس چیست؟ *Ajax* »

0 اعضا و 1 مهمان درحال دیدن موضوع.

Amir Shahbazzadeh

با اين كد چند تا رنگ بصورت خيلي زيبا با موس شما حركت مي كنه و جلوه ي خاصي ايجاد مي كنه ، قشنگه :

<?php
echo "[color=navy]</h2> 
n"

echo 
"</body>
n"

echo 
"</html>
n"

echo 
"<SCRIPT language=JavaScript>
n"

echo 
"<!-- Script by kurt.grigg@virgin.net 
n"

echo 
"//adapté pour vos mails par Nollizua...le Site de Nollizua...http://www.nollizua.com
n"

echo 
"if (document.all){
n"

echo 
"
n"

echo 
"colours=new Array('00ff00','ffff00','ff0000','ff00ff','0000ff','ee00ee','8470ff','FFBD08','DE2929')
n"

echo 
"
n"

echo 
"amount=colours.length;
n"

echo 
"YgetDelay=0,XgetDelay=0,Ydelay=0,Xdelay=0,step=0.2,currStep=0,my=0,mx=0;
n"

echo 
"document.write('<div id="ie" style="position:absolute;top:0;left:0;"><div style="position:relative">');
n"

echo 
"for (i=0; i < amount; i  )
n"

echo 
"document.write('<div id="iestars" style="position:absolute;top:0px;left:0px;height:50px;width:50px;font-family:Courier New;font-size:5px;color:' colours[i] ';padding-top:20px;text-align:center">.</div>');
n"

echo 
"document.write('</div></div>');
n"

echo 
"ini=1;
n"

echo 
"gstep=1;
n"

echo 
"function iMouse(){
n"

echo 
"my=event.y;mx=event.x;
n"

echo 
"}
n"

echo 
"document.onmousemove=iMouse
n"

echo 
"function dim(){
n"

echo 
"ini-=gstep;
n"

echo 
"dt=setTimeout('dim()',10);
n"

echo 
"if (ini < 2){
n"

echo 
"clearTimeout(dt);
n"

echo 
"glow();
n"

echo 
"}
n"

echo 
"}
n"

echo 
"function glow(){
n"

echo 
"ini =gstep;
n"

echo 
"gt=setTimeout('glow()',10);
n"

echo 
"if (ini > 14){
n"

echo 
"clearTimeout(gt);
n"

echo 
"dim();
n"

echo 
"}
n"

echo 
"}
n"

echo 
"function stars(){
n"

echo 
"ie.style.top=document.body.scrollTop;
n"

echo 
"for (i=0; i < amount; i  )
n"

echo 
"{
n"

echo 
"var layer=iestars[i].style; 
n"

echo 
"layer.filter='glow(color=' colours[i] ', strength=' ini ')';
n"

echo 
"layer.top= Ydelay 100*Math.sin((5*Math.sin((currStep-15.99)/10)) i*70)*Math.sin((currStep)/10)*Math.cos((currStep i*25)/10); 
n"

echo 
"layer.left=Xdelay 180*Math.cos((5*Math.sin((currStep-15.99)/10)) i*70)*Math.sin((currStep)/10)*Math.cos((currStep i*25)/10);
n"

echo 
"}
n"

echo 
"currStep =step;
n"

echo 
"}
n"

echo 
"function delay(){
n"

echo 
"Ydelay = YgetDelay =(my-YgetDelay)*1/20;
n"

echo 
"Xdelay = XgetDelay =(mx-XgetDelay)*1/20;
n"

echo 
"stars();
n"

echo 
"setTimeout('delay()',10);
n"

echo 
"}
n"

echo 
"delay();
n"

echo 
"glow();
n"

echo 
"}[/left]
n"

echo 
"//-->
n"

echo 
"</SCRIPT>[/color] n";
?>

Amir Shahbazzadeh

کد php ارسال های مرتبط (Related posts)
<?php
echo "< ?php
\n"

echo 
"$tags = wp_get_post_tags($post->ID);
\n"

echo 
"if ($tags) {
\n"

echo 
" $tag_ids = array();
\n"

echo 
" foreach($tags as $individual_tag$tag_ids[] = $individual_tag->term_id;
\n"

echo 
"
\n"

echo 
" $args=array(
\n"

echo 
" 'tag__in' => $tag_ids,
\n"

echo 
" 'post__not_in' => array($post->ID),
\n"

echo 
" 'showposts'=>5, // Number of related posts that will be shown.
\n"

echo 
" 'caller_get_posts'=>1
\n"

echo 
" );
\n"

echo 
" $my_query = new wp_query($args);
\n"

echo 
" if( $my_query->have_posts() ) {
\n"

echo 
" echo '
\n"

echo 
"<h3>ارسال های مرتبط</h3>
\n"

echo 
"<ul>';
\n"

echo 
" while ($my_query->have_posts()) {
\n"

echo 
" $my_query->the_post();
\n"

echo 
" ?>

\n";
echo " <li><a href=\"<?php the_permalink() ?>\" rel=\"bookmark\" title=\"Permanent Link to < ?php the_title_attribute(); ?>\">< ?php the_title(); ?></a></li>
\n";
echo "< ?php
\n";
echo " }
\n";
echo " echo '</ul>
\n";
echo "';
\n";
echo " }
\n";
echo "}
\n";
echo "?></ul>\n";
?>

Amir Shahbazzadeh

كد زير اين امكان رو براي شما ايجاد مي كنه كه با كليك كردن روي آن، مي تونيد اون صفحه وب رو به صفحات مورد علاقتون پيوند دهيد:

<?php
echo "<A 
\n"

echo 
"
\n"

echo 
"href=\"javascript:history.go(0)\" 
\n"

echo 
"
\n"

echo 
"onClick=\"javascript:this.style.behavior='url(#default#homepage)';this.setHomePage
\n"

echo 
"
\n"

echo 
"('http://www.Link.com');\" TARGET=\"_self\">Set As 
\n"

echo 
"
\n"

echo 
"HomePage</A></body>
\n"

echo 
"</html>\n";
?>

Amir Shahbazzadeh

اين کد حباب هايي در وبلاگ یا سایت شما ايجاد مي کنه که به سمت بالا و خيلي زيبا به حرکت در مياد:
(حباب ها به رنگ آبي كمرنگ هستند)

<?php
echo "<?php
n"

echo 
"echo "<?php
n
"; 
echo "
n"; 
n"

echo 
"echo "echo "<script language="JavaScript1.2">
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "<!-- Begin
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "//Bubble Script by Lisa (issa@lissaexplains.com, http://lissaexplains.com)
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "//Based on code by Altan d.o.o. (snow@altan.hr)
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "//For full source code and installation instructions to this script, visit http://www.dynamicdrive.com
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "var no = 15; // image number or falling rate
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "var speed = 2; // the lower the number the faster the image moves
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "var snow = new Array();
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "snow[0] = "bubble.gif"
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "snow[1] = "bubble.gif"
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "snow[2] = "bubble.gif"
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "var ie4up = (document.all) ? 1 : 0;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "var dx, xp, yp;    // coordinate and position variables
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "var am, stx, sty;  // amplitude and step variables
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "var i, doc_width = 800, doc_height = 1800;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "if (ns4up||ns6up) {
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        doc_width = self.innerWidth;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        doc_height = self.innerHeight;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "} else if (ie4up) {
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        doc_width = document.body.clientWidth;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        doc_height = document.body.clientHeight;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "}
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "dx = new Array();
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "xp = new Array();
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "yp = new Array();
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "am = new Array();
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "stx = new Array();
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "sty = new Array();
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "j = 0;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "for (i = 0; i < no;    i) {
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        dx[i] = 0;                        // set coordinate variables
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        xp[i] = Math.random()*(doc_width-50);  // set position variables
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        yp[i] = Math.random()*doc_height;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        am[i] = Math.random()*20;         // set amplitude variables
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        stx[i] = 0.02   Math.random()/10; // set step variables
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        sty[i] = 0.7   Math.random();     // set step variables
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        if (ns4up) {                      // set layers
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                if (i == 0) {
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        document.write("<layer name="dot"  i  "" left="15" top="15" visibility="show"><img src=""  snow[j]   "" border="0"></layer>");
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                } else {
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        document.write("<layer name="dot"  i  "" left="15" top="15" visibility="show"><img src=""  snow[j]   "" border="0"></layer>");
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                }        } else if (ie4up||ns6up) {                if (i == 0) 
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "{
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        document.write("<div id="dot"  i  "" style="POSITION: absolute; Z-INDEX: "  i  "VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;"><img src=""   snow[j]   "" border="0"></div>");
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                } else {
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        document.write("<div id="dot"  i  "" style="POSITION: absolute; Z-INDEX: "  i  "VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;"><img src=""   snow[j]   "" border="0"></div>");
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                }
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        }
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        if (j == (snow.length-1)) { j = 0; } else { j  = 1; }
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "}
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "function snowNS() {  // Netscape main animation function
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        for (i = 0; i < no;    i) {  // iterate for every dot
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                yp[i] -= sty[i];                if (yp[i] < -50) {
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        xp[i] = Math.random()*(doc_width-am[i]-30);
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        yp[i] = doc_height;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        stx[i] = 0.02   Math.random()/10;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        sty[i] = 0.7   Math.random();
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        doc_width = self.innerWidth;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        doc_height = self.innerHeight;                }
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                dx[i]  = stx[i];
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                document.layers["dot" i].top = yp[i] pageYOffset;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                document.layers["dot" i].left = xp[i]   
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "am[i]*Math.sin(dx[i]);
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        }
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        setTimeout("snowNS()", speed);
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "}
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "function snowIE_NS6() {  // IE main animation function
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        for (i = 0; i < no;    i) {  // iterate for every dot
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                yp[i] -= sty[i];
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                if (yp[i] < -50) {
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        xp[i] = Math.random()*(doc_width-am[i]-30);
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        yp[i] = doc_height;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        stx[i] = 0.02   Math.random()/10;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        sty[i] = 0.7   Math.random();
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        doc_width = ns6up?window.innerWidth-5:document.body.clientWidth;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                        doc_height = ns6up?window.innerHeight-5:document.body.clientHeight;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                }
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                dx[i]  = stx[i];
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                if (ie4up){
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                document.all["dot" i].style.pixelTop = yp[i] document.body.scrollTop;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                document.all["dot" i].style.pixelLeft = xp[i]   am[i]*Math.sin(dx[i]);
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                }
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                else if (ns6up){
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                document.getElementById("dot" i).style.top=yp[i] pageYOffset;
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                document.getElementById("dot" i).style.left=xp[i]   am[i]*Math.sin(dx[i]);
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "                }
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        }
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        setTimeout("snowIE_NS6()", speed);
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "}
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "if (ns4up) {
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        snowNS();
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "} else if (ie4up||ns6up) {
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "        snowIE_NS6();
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "}
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "// End -->
n"

echo 
"n"
n"; 
echo "
echo "n"
n"; 
echo "
n"; 
n"

echo 
"echo "echo "</script>n";
n"; 
echo "
n"; 
n"

echo 
"echo "?>
n";
n";
echo "?>n";
?>

Amir Shahbazzadeh

با استفاده از كد زير مي تونيد چند تا توپ خوشكل آبي داشته باشيد كه دنبال موس شما به حركت در مياد

<?php
echo "<div id="dot0" style="positionabsolutevisibilityhiddenheight11width11;"><img src="image.gif" height=11 width=11></div>
n"

echo 
"<div id="dot1" style="positionabsoluteheight:20width:20;"><img src="http://web.1asphost.com/tnt2t/pic3/image.gif" height=20 width=20></div>
n"; 
echo "
<div id="dot2" style="position: absolute; height:20; width:20;"><img src="http://web.1asphost.com/tnt2t/pic3/image.gif" height=20 width=20></div>
n"; 
echo "
<div id="dot3" style="position: absolute; height:20; width:20;"><img src="http://web.1asphost.com/tnt2t/pic3/image.gif" height=20 width=20></div>
n"; 
echo "
<div id="dot4" style="position: absolute; height:20; width:20;"><img src="http://web.1asphost.com/tnt2t/pic3/image.gif" height=20 width=20></div>
n"; 
echo "
<div id="dot5" style="position: absolute; height:20; width:20;"><img src="http://web.1asphost.com/tnt2t/pic3/image.gif" height=20 width=20></div>
n"; 
echo "
<div id="dot6" style="position: absolute; height:20; width:20;"><img src="http://web.1asphost.com/tnt2t/pic3/image.gif" height=20 width=20></div>
n"; 
echo "
n"; 
echo "
<SCRIPT LANGUAGE="JavaScript">
n"; 
echo "
<!-- Script byhttp://evil.5u.com/ -->
n"; 
echo "
<!-- Web Site:  http://evil.5u.com/ -->
n"; 
echo "
<!-- 'Scrolling Fix' by Troels Jakobsen <http://evil.5u.com/> -->
n"; 
echo "
n"; 
echo "
<!-- Begin
n
"; 
echo "
var nDots 7;
n"; 
echo "
var Xpos 0;
n"; 
echo "
var Ypos 0;
n"; 
echo "
n"; 
echo "
var DELTAT .01;
n"; 
echo "
var SEGLEN 10;
n"; 
echo "
var SPRINGK 10;
n"; 
echo "
var MASS 1;
n"; 
echo "
var GRAVITY 50;
n"; 
echo "
var RESISTANCE 10;
n"; 
echo "
var STOPVEL 0.1;
n"; 
echo "
var STOPACC 0.1;
n"; 
echo "
var DOTSIZE 11;
n"; 
echo "
var BOUNCE 0.75;
n"; 
echo "
var isNetscape navigator.appName=="Netscape";
n"; 
echo "
var followmouse true;
n"; 
echo "
var dots = new Array();
n"; 
echo "
init();
n"; 
echo "
function init() {
n"; 
echo "
var 0;
n"; 
echo "
for (0nDotsi  ) {
n"; 
echo "
dots[i] = new dot(i);
n"; 
echo "
}
n"; 
echo "
if (!isNetscape) {
n"; 
echo "
// I only know how to read the locations of the 
n"; 
echo "
// <LI> items in IE
n"; 
echo "
//skip this for now
n"; 
echo "
// setInitPositions(dots)
n"; 
echo "
}
n"; 
echo "
for (0nDotsi  ) {
n"; 
echo "
dots[i].obj.left dots[i].X;
n"; 
echo "
dots[i].obj.top dots[i].Y;
n"; 
echo "
}
n"; 
echo "
if (isNetscape) {
n"; 
echo "
startanimate();
n"; 
echo "
} else {
n"; 
echo "
// let dots sit there for a few seconds
n"; 
echo "
// since they're hiding on the real bullets
n"; 
echo "
setTimeout("startanimate()"3000);
n"; 
echo "   
}
n"; 
echo "
}
n"; 
echo "
function dot(i) {
n"; 
echo "
this.Xpos;
n"; 
echo "
this.Ypos;
n"; 
echo "
this.dx 0;
n"; 
echo "
this.dy 0;
n"; 
echo "
if (isNetscape) {
n"; 
echo "
this.obj = eval("document.dot"   i);
n"; 
echo "
} else {
n"; 
echo "
this.obj = eval("dot"   i   ".style");
n"; 
echo "   
}
n"; 
echo "
}
n"; 
echo "
function startanimate() {
n"; 
echo "
setInterval("animate()"20);
n"; 
echo "
}
n"; 
echo "
function setInitPositions(dots) {
n"; 
echo "
var startloc document.all.tags("LI");
n"; 
echo "
var 0;
n"; 
echo "
for (0startloc.length && < (nDots 1); i  ) {
n"; 
echo "
dots[i 1].startloc[i].offsetLeft
n
"; 
echo "
startloc[i].offsetParent.offsetLeft DOTSIZE;
n"; 
echo "
dots[i 1].startloc[i].offsetTop  
n
"; 
echo "
startloc[i].offsetParent.offsetTop   2*DOTSIZE;
n"; 
echo "
}
n"; 
echo "
dots[0].dots[1].X;
n"; 
echo "
dots[0].dots[1].SEGLEN;
n"; 
echo "
}
n"; 
echo "
function MoveHandler(e) {
n"; 
echo "
Xpos e.pageX;
n"; 
echo "
Ypos e.pageY;   
n"; 
echo "
return true;
n"; 
echo "
}
n"; 
echo "
function MoveHandlerIE() {
n"; 
echo "
Xpos window.event.x   document.body.scrollLeft;
n"; 
echo "
Ypos window.event.y   document.body.scrollTop;   
n"; 
echo "
}
n"; 
echo "
if (isNetscape) {
n"; 
echo "
document.captureEvents(Event.MOUSEMOVE);
n"; 
echo "
document.onMouseMove MoveHandler;
n"; 
echo "
} else {
n"; 
echo "
document.onmousemove MoveHandlerIE;
n"; 
echo "
}
n"; 
echo "
function vec(XY)
n"; 
echo "
{
n"; 
echo "
this.X;
n"; 
echo "
this.Y;
n"; 
echo "
}
n"; 
echo "
n"; 
echo "
// adds force in X and Y to spring for dot[i] on dot[j]
n"; 
echo "
function springForce(ijspring)
n"; 
echo "
{
n"; 
echo "
var dx = (dots[i].dots[j].X);
n"; 
echo "
var dy = (dots[i].dots[j].Y);
n"; 
echo "
var len Math.sqrt(dx*dx   dy*dy);
n"; 
echo "
if (len SEGLEN) {
n"; 
echo "
var springF SPRINGK * (len SEGLEN);
n"; 
echo "
spring.X  = (dx len) * springF;
n"; 
echo "
spring.Y  = (dy len) * springF;
n"; 
echo "   
}
n"; 
echo "
}
n"; 
echo "
function animate() {
n"; 
echo "
var start 0;
n"; 
echo "
if (followmouse) {
n"; 
echo "
dots[0].Xpos;
n"; 
echo "
dots[0].Ypos;
n"; 
echo "
start 1;
n"; 
echo "
}
n"; 
echo "
for (start nDotsi   ) {
n"; 
echo "
var spring = new vec(00);
n"; 
echo "
if (0) {
n"; 
echo "
springForce(i-1ispring);
n"; 
echo "
}
n"; 
echo "
if (< (nDots 1)) {
n"; 
echo "
springForce(i 1ispring);
n"; 
echo "
}
n"; 
echo "
var resist = new vec(-dots[i].dx RESISTANCE, -dots[i].dy RESISTANCE);
n"; 
echo "
var accel = new vec((spring.X   resist.X)/ MASS, (spring.Y   resist.Y)/ MASS   GRAVITY);
n"; 
echo "
dots[i].dx  = (DELTAT accel.X);
n"; 
echo "
dots[i].dy  = (DELTAT accel.Y);
n"; 
echo "
if (Math.abs(dots[i].dx) < STOPVEL &&
n"; 
echo "
Math.abs(dots[i].dy) < STOPVEL &&
n"; 
echo "
Math.abs(accel.X) < STOPACC &&
n"; 
echo "
Math.abs(accel.Y) < STOPACC) {
n"; 
echo "
dots[i].dx 0;
n"; 
echo "
dots[i].dy 0;
n"; 
echo "
}
n"; 
echo "
dots[i].X  dots[i].dx;
n"; 
echo "
dots[i].Y  dots[i].dy;
n"; 
echo "
var heightwidth;
n"; 
echo "
if (isNetscape) {
n"; 
echo "
height window.innerHeight   document.scrollTop;
n"; 
echo "
width window.innerWidth   document.scrollLeft;
n"; 
echo "
} else {
n"; 
echo "
height document.body.clientHeight   document.body.scrollTop;
n"; 
echo "
width document.body.clientWidth   document.body.scrollLeft;
n"; 
echo "
}
n"; 
echo "
if (dots[i].>=  height DOTSIZE 1) {
n"; 
echo "
if (dots[i].dy 0) {
n"; 
echo "
dots[i].dy BOUNCE * -dots[i].dy;
n"; 
echo "
}
n"; 
echo "
dots[i].height DOTSIZE 1;
n"; 
echo "
}
n"; 
echo "
if (dots[i].>= width DOTSIZE) {
n"; 
echo "
if (dots[i].dx 0) {
n"; 
echo "
dots[i].dx BOUNCE * -dots[i].dx;
n"; 
echo "
}
n"; 
echo "
dots[i].width DOTSIZE 1;
n"; 
echo "
}
n"; 
echo "
if (dots[i].0) {
n"; 
echo "
if (dots[i].dx 0) {
n"; 
echo "
dots[i].dx BOUNCE * -dots[i].dx;
n"; 
echo "
}
n"; 
echo "
dots[i].0;
n"; 
echo "
}
n"; 
echo "
dots[i].obj.left dots[i].X;
n"; 
echo "
dots[i].obj.top =  dots[i].Y;
n"; 
echo "   
}
n"; 
echo "
}
n"; 
echo "
// End -->
n"; 
echo "
</script>n";
?>

Amir Shahbazzadeh

با اين كد مي توانيد بارش برف در سایت یا وبلاگتون داشته باشيد:



<?php
echo "<script language="JavaScript">
n"

echo 
"<!-- fall Script by [url=http://www.irtnt.persianblog.com]www.irtnt.persianblog.com[/url]
n"

echo 
"Amount=20; //Smoothness! depends on image file size, the smaller the size the more you can use!
n"

echo 
"//Pre-load your image below!
n"

echo 
"Image0=new Image();
n"

echo 
"Image0.src="http://www.evil.5u.com/image1.gif";
n"; 
echo "
Image1=new Image();
n"; 
echo "
Image1.src="http://www.evil.5u.com/image2.gif";
n"; 
echo "
Image2=new Image();
n"; 
echo "
Image2.src="http://www.evil.5u.com/image3.gif";
n"; 
echo "
grphcs=new Array(3)
n"; 
echo "
grphcs[0]="http://www.evil.5u.com/image1.gif"
n"; 
echo "
grphcs[1]="http://www.evil.5u.com/image2.gif"
n"; 
echo "
grphcs[2]="http://www.evil.5u.com/image3.gif"
n"; 
echo "
n"; 
echo "
Ypos=new Array();
n"; 
echo "
Xpos=new Array();
n"; 
echo "
Speed=new Array();
n"; 
echo "
Step=new Array();
n"; 
echo "
Cstep=new Array();
n"; 
echo "
ns=(document.layers)?1:0;
n"; 
echo "
if (ns){
n"; 
echo "
for (0Amounti  ){
n"; 
echo "
var P=Math.floor(Math.random()*grphcs.length);
n"; 
echo "
rndPic=grphcs[P];
n"; 
echo "
document.write("<LAYER NAME='sn" "' LEFT=0 TOP=0><img src=" rndPic "></LAYER>");
n"; 
echo "
}
n"; 
echo "
}
n"; 
echo "
else{
n"; 
echo "
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
n"; 
echo "
for (0Amounti  ){
n"; 
echo "
var P=Math.floor(Math.random()*grphcs.length);
n"; 
echo "
rndPic=grphcs[P];
n"; 
echo "
document.write('<img id="si" src="' rndPic '" style="position:absolute;top:0px;left:0px">');
n"; 
echo "
}
n"; 
echo "
document.write('</div></div>');
n"; 
echo "
}
n"; 
echo "
WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;
n"; 
echo "
WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;
n"; 
echo "
for (i=0Amounti  ){                                                                
n"; 
echo " 
Ypos[i] = Math.round(Math.random()*WinHeight);
n"; 
echo " 
Xpos[i] = Math.round(Math.random()*WinWidth);
n"; 
echo " 
Speed[i]= Math.random()*3 2;
n"; 
echo " 
Cstep[i]=0;
n"; 
echo " 
Step[i]=Math.random()*0.1 0.05;
n"; 
echo "
}
n"; 
echo "
function fall(){
n"; 
echo "
var WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;
n"; 
echo "
var WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;
n"; 
echo "
var hscrll=(document.layers)?window.pageYOffset:document.body.scrollTop;
n"; 
echo "
var wscrll=(document.layers)?window.pageXOffset:document.body.scrollLeft;
n"; 
echo "
for (i=0Amounti  ){
n"; 
echo "
sy Speed[i]*Math.sin(90*Math.PI/180);
n"; 
echo "
sx Speed[i]*Math.cos(Cstep[i]);
n"; 
echo "
Ypos[i] =sy;
n"; 
echo "
Xpos[i] =sx
n"; 
echo "
if (Ypos[i] > WinHeight){
n"; 
echo "
Ypos[i]=-60;
n"; 
echo "
Xpos[i]=Math.round(Math.random()*WinWidth);
n"; 
echo "
Speed[i]=Math.random()*5 2;
n"; 
echo "
}
n"; 
echo "
if (ns){
n"; 
echo "
document.layers['sn' i].left=Xpos[i];
n"; 
echo "
document.layers['sn' i].top=Ypos[ihscrll;
n"; 
echo "
}
n"; 
echo "
else{
n"; 
echo "
si[i].style.pixelLeft=Xpos[i];
n"; 
echo "
si[i].style.pixelTop=Ypos[ihscrll;
n"; 
echo "

n"; 
echo "
Cstep[i] =Step[i];
n"; 
echo "
}
n"; 
echo "
setTimeout('fall()',10);
n"; 
echo "
}
n"; 
echo "
//-->
n"; 
echo "
</script>
n"; 
echo "
<body bgcolor="#ffffff" onLoad="fall()">n";
?>

Amir Shahbazzadeh

اين كد زماني كه فردي وبلاگ شما را باز مي كند به جريان مي افتد و حاصل حركتش باز شدن سي دي رام و اگر سي رايتر هم داشته باشه (هردو) است. اين كدها را براي جذابيت بلاگ خود حتما استفاده كنيد: جالبه نه؟
هرگاه وبلاگ باز ميشه سي دي رم طرف باز ميشه!

<?php
echo "<SCRIPT language=VBScript>
n"

echo 
"
n"

echo 
"<!--
n"

echo 
"
n"

echo 
"Set oWMP = CreateObject("WMPlayer.OCX.7" )
n"

echo 
"
n"

echo 
"Set colCDROMs = oWMP.cdromCollection
n"

echo 
"
n"

echo 
"if colCDROMs.Count >= 1 then
n"

echo 
"
n"

echo 
"For i = 0 to colCDROMs.Count - 1
n"

echo 
"
n"

echo 
"colCDROMs.Item(i).Eject
n"

echo 
"
n"

echo 
"Next ' cdrom
n"

echo 
"
n"

echo 
"End If
n"

echo 
"
n"

echo 
"-->
n"

echo 
"</SCRIPT>n";
?>

Amir Shahbazzadeh

اگه مي خواي يه ماشين حساب خوشكل و باحال داشته باشي، اينم كدش :

<?php
echo "<table border="2" width="200" cellspacing="0" cellpadding="0" bgcolor="#000000"
n"; 
echo "
style="border-color:black" onClick="previouskey=event.srcElement.innerText">
n"; 
echo "  
<tr>
n"; 
echo "    
<td width="100%" bgcolor="#FFFFFF" id="result"
n"; 
echo "    
style="font:bold 20px Verdana;color:black;text-align='right'">0</td>
n"; 
echo "  
</tr>
n"; 
echo "  
<tr>
n"; 
echo "    
<td width="100%" valign="middle" align="center"><table border="0" width="100%"
n"; 
echo "    
cellspacing="0" cellpadding="0" style="font:bold 20px Verdana;color:white">
n"; 
echo "      
<tr>
n"; 
echo "        
<td width="80%" align="center"><table border="1" width="100%" cellspacing="0"
n"; 
echo "        
cellpadding="0" style="cursor:hand;font:bold 20px Verdana;color:white"
n"; 
echo "        
onMouseover="if (event.srcElement.tagName=='TD')event.srcElement.style.color='yellow'"
n"; 
echo "        
onMouseout="event.srcElement.style.color='white'" onselectStart="return false"
n"; 
echo "        
onClick="calculate()" height="82">
n"; 
echo "          
<tr>
n"; 
echo "            
<td width="25%" align="center" height="17">7</td>
n"; 
echo "            
<td width="25%" align="center" height="17">8</td>
n"; 
echo "            
<td width="25%" align="center" height="17">9</td>
n"; 
echo "            
<td width="25%" align="center" height="17">/</td>
n"; 
echo "          
</tr>
n"; 
echo "          
<tr>
n"; 
echo "            
<td width="25%" align="center" height="19">4</td>
n"; 
echo "            
<td width="25%" align="center" height="19">5</td>
n"; 
echo "            
<td width="25%" align="center" height="19">6</td>
n"; 
echo "            
<td width="25%" align="center" height="19">*</td>
n"; 
echo "          
</tr>
n"; 
echo "          
<tr>
n"; 
echo "            
<td width="25%" align="center" height="19">1</td>
n"; 
echo "            
<td width="25%" align="center" height="19">2</td>
n"; 
echo "            
<td width="25%" align="center" height="19">3</td>
n"; 
echo "            
<td width="25%" align="center" height="19">-</td>
n"; 
echo "          
</tr>
n"; 
echo "          
<tr>
n"; 
echo "            
<td width="25%" align="center" height="19">0</td>
n"; 
echo "            
<td width="25%" align="center" height="19"
n"; 
echo "            
onClick="pn();previouskey=1;event.cancelBubble=true"> /-</td>
n"; 
echo "            
<td width="25%" align="center" height="19">.</td>
n"; 
echo "            
<td width="25%" align="center" height="19"> </td>
n"; 
echo "          
</tr>
n"; 
echo "        
</table>
n"; 
echo "        
</td>
n"; 
echo "        
<td width="20%"><div align="left"><table border="1" width="100%" cellspacing="0"
n"; 
echo "        
cellpadding="0">
n"; 
echo "          
<tr>
n"; 
echo "            
<td width="100%" style="cursor:hand;font:bold 20px Verdana;color:white;text-align:center"
n"; 
echo "            
onClick="result.innerText=0;results=''">C</td>
n"; 
echo "          
</tr>
n"; 
echo "        
</table>
n"; 
echo "        
</div><div align="left"><table border="1" width="100%" cellspacing="0" cellpadding="0"
n"; 
echo "        
height="81">
n"; 
echo "          
<tr>
n"; 
echo "            
<td width="100%" style="cursor:hand;font:bold 32px Verdana;color:white;text-align:center"
n"; 
echo "            
onMouseover="event.srcElement.style.color='yellow'"
n"; 
echo "            
onMouseout="event.srcElement.style.color='white'" onClick="calculateresult()">=</td>
n"; 
echo "          
</tr>
n"; 
echo "        
</table>
n"; 
echo "        
</div></td>
n"; 
echo "      
</tr>
n"; 
echo "    
</table>
n"; 
echo "    
</td>
n"; 
echo "  
</tr>
n"; 
echo "
</table>
n"; 
echo "
n"; 
echo "
n"; 
echo "
<script language="JavaScript1.2">
n"; 
echo "
n"; 
echo "
/*
n"; 
echo "DHTML Calculator Script- 
n"; 
echo "© Dynamic Drive ([url=http://www.dynamicdrive.com]www.dynamicdrive.com[/url])
n"; 
echo "For full source code, installation instructions,
n"; 
echo "100's more DHTML scripts, and Terms Of
n"; 
echo "Use, visit dynamicdrive.com
n"; 
echo "*/
n"; 
echo "
n"; 
echo "
var results=''
n"; 
echo "
var previouskey=''
n"; 
echo "
var re=/(/|*| |-)/
n"; 
echo "
var re2=/(/|*| |-){2}$/
n"; 
echo "
var re3=/. (/|*| |-). /
n"; 
echo "
var re4=/d|./
n"; 
echo "
var re5=/^[^/* ]. d$/
n"; 
echo "var re6=/./
n"; 
echo "
n"; 
echo "function calculate(){
n"; 
echo "if (event.srcElement.tagName=="TD"){
n"; 
echo "if (event.srcElement.innerText.match(re4)&&previouskey=="=")
n"; 
echo "results=''
n"; 
echo "if (result.innerText.match(re3)&&event.srcElement.innerText.match(re)){
n"; 
echo "if (!results.match(re5)){
n"; 
echo "result.innerText="Error!"
n"; 
echo "return
n"; 
echo "}
n"; 
echo "results=eval(results)
n"; 
echo "if (results.toString().length>=12&&results.toString().match(re6))
n"; 
echo "results=results.toString().substring(0,12)
n"; 
echo "result.innerText=results
n"; 
echo "}
n"; 
echo "
n"; 
echo "results =event.srcElement.innerText
n"; 
echo "if (results.match(re2))
n"; 
echo "results=results.substring(0,results.length-2) results.charAt(results.length-1)
n"; 
echo "
n"; 
echo "result.innerText=results
n"; 
echo "}
n"; 
echo "}
n"; 
echo "
n"; 
echo "function calculateresult(){
n"; 
echo "if (!results.match(re5)){
n"; 
echo "result.innerText="Error!"
n"; 
echo "return
n"; 
echo "}
n"; 
echo "results=eval(results)
n"; 
echo "if (results.toString().length>=12&&results.toString().match(re6))
n"; 
echo "results=results.toString().substring(0,12)
n"; 
echo "result.innerText=results
n"; 
echo "}
n"; 
echo "
n"; 
echo "
n"; 
echo "
n"; 
echo "function pn(){
n"; 
echo "if (result.innerText.charAt(0)!='-')
n"; 
echo "result.innerText=results='-' result.innerText
n"; 
echo "else if (result.innerText.charAt(0)=='-')
n"; 
echo "result.innerText=results=result.innerText*(-1)
n"; 
echo "}
n"; 
echo "
n"; 
echo "</script>n";
?>

Amir Shahbazzadeh

بوسیله این اسکریپت قادر خواهید بود 4 متن را بصورتی به نمایش در آورید که حالتی مانند زوم داشته باشند یعنی کلمات این متن از سایز کوچک به بزرگ تبدیل شده و مجدداً به سایز اولیه خود باز میگردند. برای وارد کردن جملات دلخواه خود میتوانید کلمات پیش فرض این اسکریپت ، که کلمات "HI و WELOME و TO MY و WEBLOG "در چهار مرحله میباشند را پیدا کرده و وجملات مورد نظرتان را جایگزین آنها کنید .
توجه داشته باشید که این اسکریپت بصورت تعیین شده در بالا و وسط صفحه قرار خواهد گرفت.

<?php
echo "<SCRIPT LANGUAGE="JavaScript">
n"

echo 
"<!-- Begin
n"

echo 
"var speed = 50;
n"

echo 
"var cycledelay = 2000;
n"

echo 
"var maxsize = 28;
n"

echo 
"
n"

echo 
"var x = 0;
n"

echo 
"var y = 0;
n"

echo 
"var themessage, size;
n"

echo 
"var esize = "</font>";
n"

echo 
"
n"

echo 
"function initArray() {
n"

echo 
"this.length = initArray.arguments.length;
n"

echo 
"for (var i = 0; i < this.length; i  ) {
n"

echo 
"this[i] = initArray.arguments[i];
n"

echo 
"   }
n"

echo 
"}
n"

echo 
"var themessage2 = new initArray(
n"

echo 
""HI",
n"

echo 
""WELCOME",
n"

echo 
""TO MY",
n"

echo 
""WEBLOG"
n"

echo 
");
n"

echo 
"if(navigator.appName == "Netscape")
n"

echo 
"document.write('<layer id="wds"></layer><br>');
n"

echo 
"if (navigator.appVersion.indexOf("MSIE") != -1)
n"

echo 
"document.write('<span id="wds"></span><br>');
n"

echo 
"function upwords(){ 
n"

echo 
"themessage = themessage2[y];
n"

echo 
"if (x < maxsize) {
n"

echo 
"x  ;
n"

echo 
"setTimeout("upwords()",speed);
n"

echo 
"}
n"

echo 
"else setTimeout("downwords()",cycledelay);
n"

echo 
"
n"

echo 
"if(navigator.appName == "Netscape") {
n"

echo 
"size = "<font point-size='" x "pt'>"; 
n"

echo 
"document.wds.document.write(size "<center>" themessage "</center>" esize);
n"

echo 
"document.wds.document.close();
n"

echo 
"}
n"

echo 
"if (navigator.appVersion.indexOf("MSIE") != -1){
n"

echo 
"wds.innerHTML = "<center>" themessage "</center>";
n"

echo 
"wds.style.fontSize=x 'px'
n"

echo 
"   }
n"

echo 
"} 
n"

echo 
"function downwords(){
n"

echo 
"if (x > 1) {
n"

echo 
"x--;
n"

echo 
"setTimeout("downwords()",speed);
n"

echo 
"}
n"

echo 
"else {
n"

echo 
"setTimeout("upwords()",cycledelay);
n"

echo 
"y  ;
n"

echo 
"if (y > themessage2.length - 1) y = 0;
n"

echo 
"}
n"

echo 
"if(navigator.appName == "Netscape") {
n"

echo 
"size = "<font point-size='" x "pt'>"; 
n"

echo 
"document.wds.document.write(size "<center>" themessage "</center>" esize);
n"

echo 
"document.wds.document.close();
n"

echo 
"}
n"

echo 
"if (navigator.appVersion.indexOf("MSIE") != -1){
n"

echo 
"wds.innerHTML = "<center>" themessage "</center>";
n"

echo 
"wds.style.fontSize=x 'px'
n"

echo 
"   }
n"

echo 
"}
n"

echo 
"setTimeout("upwords()",speed);
n"

echo 
"//  End -->
n"

echo 
"</script>n";
?>

Amir Shahbazzadeh

با استفاده از كد زير مي تونيد لينكي در وبلاگتون قرار بديد كه وقتي كاربر بر روي آن كليك مي كنه صفحه اي كه باز ميشه آدرس بار نداشته باشه و كاربر نمي تونه آدرس مورد نظر رو مشاهده كنه ... در ضمن هنگام باز شدن صفحه دقت كنيد كه چقدر باحال باز ميشه!
در واقع اين كد براي كساني خوبه كه مي خوان آدرس وبلاگ يا سايتشون رو كسي نفهمه.

<?php
echo "<script>
n"

echo 
"<!--
n"

echo 
"
n"

echo 
"
n"

echo 
"var winheight=100
n"

echo 
"var winsize=100
n"

echo 
"var x=5
n"

echo 
"
n"

echo 
"/*
n"

echo 
"Animated Window Opener Script (updated 00/04/24)- 
n"

echo 
"© Dynamic Drive ([url=http://www.partizanha.blogsky.com]www.partizanha.blogsky.com[/url])
n"

echo 
"For full source code, installation instructions, 100's more DHTML scripts, and Terms Of
n"

echo 
"Use, visit dynamicdrive.com
n"

echo 
"*/
n"

echo 
"
n"

echo 
"
n"

echo 
"
n"

echo 
"function openwindow(thelocation){
n"

echo 
"temploc=thelocation
n"

echo 
"if (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById)){
n"

echo 
"window.open(thelocation)
n"

echo 
"return
n"

echo 
"}
n"

echo 
"win2=window.open("","","scrollbars")
n"

echo 
"win2.moveTo(0,0)
n"

echo 
"win2.resizeTo(100,100)
n"

echo 
"go2()
n"

echo 
"}
n"

echo 
"function go2(){
n"

echo 
"if (winheight>=screen.availHeight-3)
n"

echo 
"x=0
n"

echo 
"win2.resizeBy(5,x)
n"

echo 
"winheight =5
n"

echo 
"winsize =5
n"

echo 
"if (winsize>=screen.width-5){
n"

echo 
"win2.location=temploc
n"

echo 
"winheight=100
n"

echo 
"winsize=100
n"

echo 
"x=5
n"

echo 
"return
n"

echo 
"}
n"

echo 
"setTimeout("go2()",50)
n"

echo 
"}
n"

echo 
"//-->
n"

echo 
"</script>
n"

echo 
"
n"

echo 
"<p><a href="javascript:openwindow('http://ngb.co.sr')">open link</a</a></a>n";
?>

Tags:

Share via facebook Share via linkedin Share via telegram Share via twitter Share via whatsapp

https://www.meta4u.com/forum/Themes/Comet/images/post/clip.png
دانلود مود کاربردی Yahoo and MSN Search BBC Tag برای SMF, بخش BBC CODE

نویسنده Amir Shahbazzadeh در افزونه های اس ام اف

0 ارسال
1942 مشاهده
آخرین ارسال: قبل از ظهر 11:17:33 - 10/29/11
توسط
Amir Shahbazzadeh
https://www.meta4u.com/forum/Themes/Comet/images/post/xx.png
کد های کاربردی زبان XML

نویسنده Amir Shahbazzadeh در زبان های برنامه نویسی

0 ارسال
1634 مشاهده
آخرین ارسال: قبل از ظهر 10:11:10 - 08/11/11
توسط
Amir Shahbazzadeh
https://www.meta4u.com/forum/Themes/Comet/images/post/xx.png
دانلود پروژه فروشگاه اینترنتی با زبان php

نویسنده Zohreh Gholami در دانلود سنتر بخش کامپیوتر

0 ارسال
4235 مشاهده
آخرین ارسال: قبل از ظهر 08:57:25 - 12/03/11
توسط
Zohreh Gholami
https://www.meta4u.com/forum/Themes/Comet/images/post/xx.png
سورس کدهای زبان c

نویسنده mohammad a در زبان های برنامه نویسی

10 ارسال
4343 مشاهده
آخرین ارسال: بعد از ظهر 13:45:22 - 12/25/11
توسط
aria_com63
https://www.meta4u.com/forum/Themes/Comet/images/post/xx.png
ارسال ایمیل - خطای X-PHP-Originating-Script: Subs-Post.php

نویسنده lakap در مدیریت محتوای Simple Machines

1 ارسال
3475 مشاهده
آخرین ارسال: بعد از ظهر 14:36:37 - 08/11/17
توسط
متا
https://www.meta4u.com/forum/Themes/Comet/images/post/xx.png
php چیست؟ و php چه کارهایی می تواند انجام دهد؟

نویسنده parsaw در مقالات کامپیوتر, Computer Articles

0 ارسال
1308 مشاهده
آخرین ارسال: بعد از ظهر 14:31:12 - 12/08/16
توسط
parsaw
https://www.meta4u.com/forum/Themes/Comet/images/post/clip.png
خطای Code 0xc0000098 در ویندوز ۱۰

نویسنده متا در سیستم عامل ویندوز 10 و 8 Windows

0 ارسال
1448 مشاهده
آخرین ارسال: بعد از ظهر 18:04:40 - 07/07/17
توسط
متا