Search in forum:
Search


Author Message
Post08/17/2008 at 2:11am (UTC)    
Post subject: some eye catching JavaScript codes !!

LIKE A FLASH ADVERTISEING
Code:

<SCRIPT>

var text=new Array()
text[0]="Thank you for visiting slmobiles.page.tl"
text[1]="It's a pleasure to show you some dirty JavaScript tricks."
text[2]="Also we invite you to test the speed of your Browser. <b>Just click here.</b>"

// set the corresponding links
// If you don't want to link a message just add a "#" instead of an URL
var textlink=new Array()
text[0]="Thank you for visiting Slmobiles.page.tl"
text[1]="It's a pleasure to show you some dirty JavaScript tricks."
text[2]="Also we invite you to test the speed of your Browser. <b>Just click here.</b>"

// set the corresponding links
// If you don't want to link a message just add a "#" instead of an URL
var textlink=new Array()
textlink[0]="http://slmobiles.page.tl"
textlink[1]="http://slmobiles.page.tl"
textlink[2]="http://www.designerwiz.com/test/link.htm"

// set the corresponding targets
// Acceptable values are "_blank", "_self", "_top" or the name of any frame
var texttarget=new Array()
texttarget[0]="_blank"
texttarget[1]="_self"
texttarget[2]="_top"

// set the font of the messages
var textfont="Arial"

// set the font-color of the messages
var textfontcolor="#FFFFFF"

// set the rollover-fontcolor of the messages
var textfontcolorrollover="#FF0000"

// set the font-size of the messages (CSS-values)
var textfontsize=9

// set the font-size for Netscape 4x (HTML-values)
var textfontsizeHTML=2

// set the font backgroundcolor of the textbox
var textbgcolor="#000000"

// set the textweight (normal or bold)
var textweight="nomal"

// set the fontstyle (normal or italic)
var textitalic="normal"

// set the width of the textbox (pixels)
var textwidth=240

// set the height of the textbox (pixels)
var textheight=60

// set the pause (seconds)
var textpause=2

// set the width of the border
var textborder=2

// set the color of the border
var textbordercolor="#FF0000"

// set the horizontal alignment of the messages (center, left, right)
var textalign="center"

// set the vertival alignment of the messages (middle, top, bottom)
var textvalign="middle"

// do not edit below this line
var textdecoration="none"
var textweightA="<b>"
var textweightB="</b>"
var textitalicA=""
var textitalicB=""
var transparency=100
var transparencystep=2

var x_pos=0
var y_pos=0
var i_text=0
var textsplit=""
var i_textsplit=0
var i_mark=0
var tickercontent
var pausefade=30
textpause*=1000

var oneloopfinished=false

var browserinfos=navigator.userAgent
var ie=document.all&&!browserinfos.match(/Opera/)
var ns4=document.layers
var ns6=document.getElementById&&!document.all&&!browserinfos.match(/Opera/)
var opera=browserinfos.match(/Opera/) 
var browserok=ie||ns4||ns6||opera

function changecontent() {
   getcontent()
   i_text++
   if (i_text>=text.length) {i_text=0}   
   if (ie) {
      ticker.innerHTML=content
      fadeout()
   }
   if (opera || ns6) {
      document.getElementById('ticker').innerHTML=content
      var texttimer=setTimeout("changecontent()",2*textpause)
   }
   if (ns4) {
      document.roof.document.ticker.document.write(content)
      document.roof.document.ticker.document.close()
      var texttimer=setTimeout("changecontent()",textpause)
   }   
}

function fadein() {
   if (transparency<100){
      transparency+=transparencystep
      if (ie) {
         document.all.tickerbg.filters.alpha.opacity=transparency
      }
      var fadetimer=setTimeout("fadein()",pausefade)
   }
   else {
      clearTimeout(fadetimer)
      setTimeout("changecontent()",1000)
   }
}

function fadeout() {
   if (transparency>0){
      transparency-=transparencystep
      if (ie) {
         document.all.tickerbg.filters.alpha.opacity=transparency
      }
      if (ns6) {
         document.getElementById('tickerbg').style.MozOpacity=transparency/100
      }
      var fadetimer=setTimeout("fadeout()",pausefade)
   }
   else {
      clearTimeout(fadetimer)
      setTimeout("fadein()",textpause)
   }
}

getcontent()
function getcontent() {
   if (ie || opera) {
      var tablewidth=textwidth-2*textborder
      var tableheight=textheight-2*textborder
   }
   else {
      var tablewidth=textwidth
      var tableheight=textheight
   }
   if (ie || ns6) {   
      var padding=parseInt(textborder)+3
      content="<table width="+tablewidth+" height="+tableheight+" cellpadding="+padding+" cellspacing=0 border=0><tr valign="+textvalign+"><td align="+textalign+">"
      content+="<a href=\""+textlink[i_text]+"\" target=\""+texttarget[i_text]+"\" style=\"position:relative;font-family:\'"+textfont+"\';font-size:"+textfontsize+"pt;font-weight:"+textweight+";text-decoration:"+textdecoration+";color:"+textfontcolor+";font-style:"+textitalic+";\" onMouseOver=\"this.style.color=\'"+textfontcolorrollover+"\'\" onMouseOut=\"this.style.color=\'"+textfontcolor+"\'\">"
      content+=text[i_text]
      content+="</a></td></tr></table>"
   }
   else {   
      content="<table width="+tablewidth+" height="+tableheight+" cellpadding="+textborder+" cellspacing=0><tr valign="+textvalign+"><td align="+textalign+">"
      content+="<a href=\""+textlink[i_text]+"\" target=\""+texttarget[i_text]+"\" style=\"position:relative;font-family:\'"+textfont+"\';font-size:"+textfontsize+"pt;font-weight:"+textweight+";text-decoration:"+textdecoration+";color:"+textfontcolor+";font-style:"+textitalic+";\">"
      content+=text[i_text]
      content+="</a></td></tr></table>"

      framecontent="<table width="+tablewidth+" height="+tableheight+" cellpadding=0 cellspacing=0 border="+textborder+"><tr><td>"
      framecontent+="<font color=\""+textbgcolor+"\">"
      framecontent+="."
      framecontent+="</font>"
      framecontent+="</td></tr></table>"
   }
}

if (ie || ns6 || opera) {
   if (ns6) {
      textwidth-=2*textborder
      textheight-=2*textborder
   }
   document.write("<div id=\"roof\" style=\"position:relative;width:"+textwidth+"px;height:"+textheight+"px;font-family:\'"+textfont+"\';border-style:solid;border-color:"+textbordercolor+";border-width:"+textborder+"px;background-color:"+textbgcolor+";\">")
   
   if (!opera && !ns6 ) {
      document.write("<div id=\"tickerbg\" style=\"position:absolute;top:"+-textborder+"px;left:"+-textborder+"px;width:"+textwidth+"px;height:"+textheight+"px;font-family:\'"+textfont+"\';font-size:"+textfontsize+"pt;font-weight:"+textweight+";font-style:"+textitalic+";border-style:solid;border-color:"+textbordercolor+";border-width:"+textborder+"px;background-color:"+textfontcolor+";overflow:hidden\;filter:alpha(opacity=100)\">")
      document.write("</div>")
   }
   
   document.write("<div id=\"ticker\" style=\"position:absolute;top:"+-textborder+"px;left:"+-textborder+"px;width:"+textwidth+"px;height:"+textheight+"px;font-family:\'"+textfont+"\';font-size:"+textfontsize+"pt;font-weight:"+textweight+";font-style:"+textitalic+";border-style:solid;border-color:"+textbordercolor+";border-width:"+textborder+"px;overflow:hidden\;\">")
   document.write("</div></div>")

   window.onload=changecontent
}

else if (ns4) {
   document.write("<ilayer name=\"roof\" width="+textwidth+" height="+textheight+">")
      document.write("<layer name=\"tickerframe\" width="+textwidth+" height="+textheight+" top=0 left=0 bgcolor="+textbgcolor+">")
      document.write(framecontent)
      document.write("</layer>")
      document.write("<layer name=\"ticker\" width="+textwidth+" height="+textheight+" top=0 left=0>")
      document.write()
      document.write("</layer>")
   document.write("</ilayer>")
   window.onload=changecontent
}
</script>


A VERY EXITING EXPLODING STARS
Code:

<!--this script got from www.slmobiles.page.tl-Coded by: Lakum Naresh -->
<body>

<script LANGUAGE="JavaScript1.2">
<!--


//set Interval between each firework display,
var intervals=2000
var sparksOn     = true;
var speed        = 25;
var power        = 1;

//Dont change these values-------
var documentWidth=documentHeight=randomx=randomy=leftcorner=topcorner=0
var ns=(document.layers);
var ie=(document.all);
var sparksAflyin = false;
var allDivs      = new Array(10);
var totalSparks  = 0;
//-------------------------------

function initAll(){
   if(!ns && !ie){
   sparksOn = false;
   return;
   }
setInterval("firework()",intervals)

if (ns)
   document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE);
   for(dNum=0; dNum<7; ++dNum){
      if(ie)
         allDivs[dNum]=eval('document.all.sDiv'+dNum+'.style');
      else
         allDivs[dNum]=eval('document.layers["sDiv'+dNum+'"]');
   }
}

function firework(){
//below code detects the browser dimenions
if (ie){
documentWidth=document.body.clientWidth
documentHeight=document.body.clientHeight
leftcorner=document.body.scrollLeft
topcorner=document.body.scrollTop
}
else if (ns){
documentWidth=window.innerWidth
documentHeight=window.innerHeight
leftcorner=pageXOffset
topcorner=pageYOffset

}
//below code randomly generates a set of coordinates that fall within the dimension
randomx=leftcorner+Math.floor(Math.random()*documentWidth)
randomy=topcorner+Math.floor(Math.random()*documentHeight)


   if(sparksOn){
      if(!sparksAflyin){
         sparksAflyin=true;
         totalSparks=0;
         for(var spark=0;spark<=6;spark++){
            dx=Math.round(Math.random()*50);
            dy=Math.round(Math.random()*50);
            moveTo(spark,randomx,randomy,dx,dy);
         }
      }
   }
}

function moveTo(i,tempx,tempy,dx,dy){
   if(ie){
      if(tempy+80>(document.body.offsetHeight+document.body.scrollTop))
         tempy=document.body.offsetHeight+document.body.scrollTop-80;
      if(tempx+80>(document.body.offsetWidth+document.body.scrollLeft))
         tempx=document.body.offsetWidth+document.body.scrollLeft-80;
   }
   if(tempx>-50&&tempy>-50){
      tempx+=dx;tempy+=dy;   
      allDivs[i].left=tempx;
      allDivs[i].top=tempy;
      dx-=power;dy-=power;
      setTimeout("moveTo("+i+","+tempx+","+tempy+","+dx+","+dy+")",speed)
   }
   else
      ++totalSparks
   if(totalSparks==7){
      sparksAflyin=false;
      totalSparks=0;
   }
}
window.onload=initAll
//End-->
</script>
<style>
#sDiv0 {position:absolute; height:1; width:1; font-family:arial black; font-size:25px; color:Aqua;}
#sDiv1 {position:absolute; height:1; width:1; font-family:arial black; font-size:22px; color:red;}
#sDiv2 {position:absolute; height:1; width:1; font-family:arial black; font-size:20px; color:blue;}
#sDiv3 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:orange;}
#sDiv4 {position:absolute; height:1; width:1; font-family:arial black; font-size:25px; color:yellow;}
#sDiv5 {position:absolute; height:1; width:1; font-family:arial black; font-size:25px; color:lightgreen;}
#sDiv6 {position:absolute; height:1; width:1; font-family:arial black; font-size:20px; color:silver;}
</style>
<p></p>
<div id="sDiv0">
  *</div>
<div id="sDiv1">
  *</div>
<div id="sDiv2">
  *</div>
<div id="sDiv3">
  *</div>
<div id="sDiv4">
  *</div>
<div id="sDiv5">
  *</div>
<div id="sDiv6">
  *</div>

</body>

</html>


SPLITTING RAIN
Code:

<html>
<body>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var no = 50;
var speed = 1;
var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var s, x, y, sn, cs;
var a, r, cx, cy;
var i, doc_width = 800, doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
else
if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
x = new Array();
y = new Array();
r = new Array();
cx = new Array();
cy = new Array();
s = 8;
for (i = 0; i < no; ++ i) {
initRain();
if (ns4up) {
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"1\" ");
document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">");
document.write(",</font></layer>");
}
else {
document.write("<layer name=\"dot"+ i +"\" left=\"1\" ");
document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">");
document.write(",</font></layer>");
   }
}
else
if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><font color=\"blue\">");
document.write(",</font></div>");
}
else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><font color=\"blue\">");
document.write(",</font></div>");
      }
   }
}
function initRain() {
a = 6;
r[i] = 1;
sn = Math.sin(a);
cs = Math.cos(a);
cx[i] = Math.random() * doc_width + 1;
cy[i] = Math.random() * doc_height + 1;
x[i] = r[i] * sn + cx[i];
y[i] = cy[i];
}
function makeRain() {
r[i] = 1;
cx[i] = Math.random() * doc_width + 1;
cy[i] = 1;
x[i] = r[i] * sn + cx[i];
y[i] = r[i] * cs + cy[i];
}
function updateRain() {
r[i] += s;
x[i] = r[i] * sn + cx[i];
y[i] = r[i] * cs + cy[i];
}
function raindropNS() {
for (i = 0; i < no; ++ i) {
updateRain();
if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) {
makeRain();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
document.layers["dot"+i].top = y[i];
document.layers["dot"+i].left = x[i];
}
setTimeout("raindropNS()", speed);
}
function raindropIE() {
for (i = 0; i < no; ++ i) {
updateRain();
if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) {
makeRain();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
document.all["dot"+i].style.pixelTop = y[i];
document.all["dot"+i].style.pixelLeft = x[i];
}
setTimeout("raindropIE()", speed);
}
if (ns4up) {
raindropNS();
}
else
if (ie4up) {
raindropIE();
}
//  End -->
</script>
</body>
</html>


ASKING VISITOR'S NAME AND PASTING IN WEBSITE
Code:


<SCRIPT LANGUAGE="JavaScript">
{
var name = prompt ('Your name','');
var color = prompt ('Color name','');
document.write("<CENTER><FONT FACE=ARIAdL,VERDANA COLOR="+color+" SIZE=5>Welcome To Web Designer "+name+".</FONT><HR NOSHADE WIDTH=450></CENTER><P>")
}
</SCRIPT>

SPACE TRIP
Code:

<!-- TWO STEPS TO INSTALL SPACE TRIP:

  1.  Add the onLoad event handler into the BODY tag
  2.  Copy the coding into the BODY of your HTML document  -->

<!-- STEP ONE: Insert the onLoad event handler into your BODY tag  -->

<BODY BGCOLOR="#000000" onLoad="fly()">

<!-- STEP TWO: Paste this code into the BODY of your HTML document  -->

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
SmallStars = 30;
LargeStars = 10;
SmallYpos = new Array();
SmallXpos = new Array();
LargeYpos = new Array();
LargeXpos = new Array();
Smallspeed= new Array();
Largespeed= new Array();
ns=(document.layers)?1:0;
if (ns) {
for (i = 0; i < SmallStars; i++) {
document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,1,1'></LAYER>");
}
for (i = 0; i < LargeStars; i++) {
document.write("<LAYER NAME='ln"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFFF' CLIP='0,0,2,2'></LAYER>");
   }
}
else {
document.write('<div style="position:absolute;top:0px;left:0px">');
document.write('<div style="position:relative">');
for (i = 0; i < SmallStars; i++) {
document.write('<div id="si" style="position:absolute;top:0;left:0;width:1px;height:1px;background:#fffff0;font-size:1px"></div>');
}
document.write('</div>');
document.write('</div>');
document.write('<div style="position:absolute;top:0px;left:0px">');
document.write('<div style="position:relative">');
for (i = 0; i < LargeStars; i++) {
document.write('<div id="li" style="position:absolute;top:0;left:0;width:2px;height:2px;background:#ffffff;font-size:2px"></div>');
}
document.write('</div>');
document.write('</div>');
}
WinHeight = (document.layers)?window.innerHeight:window.document.body.clientHeight;
WinWidth = (document.layers)?window.innerWidth:window.document.body.clientWidth;
for (i = 0; i < SmallStars; i++) {
SmallYpos[i] = Math.round(Math.random() * WinHeight);
SmallXpos[i] = Math.round(Math.random() * WinWidth);
Smallspeed[i]= Math.random() * 5 + 1;
}
for (i = 0; i < LargeStars; i++) {
LargeYpos[i] = Math.round(Math.random() * WinHeight);
LargeXpos[i] = Math.round(Math.random() * WinWidth);
Largespeed[i] = Math.random() * 10 + 5;
}
function fly() {
var WinHeight = (document.layers)?window.innerHeight:window.document.body.clientHeight;
var WinWidth = (document.layers)?window.innerWidth:window.document.body.clientWidth;
var hscrll = (document.layers)?window.pageYOffset:document.body.scrollTop;
var wscrll = (document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i = 0; i < LargeStars; i++) {
LargeXpos[i] -= Largespeed[i];
if (LargeXpos[i] < -10) {
LargeXpos[i] = WinWidth;
LargeYpos[i] = Math.round(Math.random() * WinHeight);
Largespeed[i] = Math.random() * 10 + 5;
}
if (ns) {
document.layers['ln'+i].left = LargeXpos[i];
document.layers['ln'+i].top = LargeYpos[i] + hscrll;
}
else {
li[i].style.pixelLeft = LargeXpos[i];
li[i].style.pixelTop = LargeYpos[i] + hscrll;
   }
}
for (i = 0; i < SmallStars; i++) {
SmallXpos[i] -= Smallspeed[i];
if (SmallXpos[i] < -10) {
SmallXpos[i] = WinWidth;
SmallYpos[i] = Math.round(Math.random()*WinHeight);
Smallspeed[i] = Math.random() * 5 + 1;
}
if (ns) {
document.layers['sn'+i].left = SmallXpos[i];
document.layers['sn'+i].top = SmallYpos[i]+hscrll;
}
else {
si[i].style.pixelLeft = SmallXpos[i];
si[i].style.pixelTop = SmallYpos[i]+hscrll;
   }
}
setTimeout('fly()', 10);
}
//  End -->
</script>



<!-- Script Size:  3.79 KB -->

______________
lakum naresh


Last edited by slmobiles on Sun Aug 17, 2008 2:31 am; edited 2 times in total
Post08/30/2008 at 12:43pm (UTC)    
Post subject:

Post08/30/2008 at 3:07pm (UTC)    
Post subject: ADDITIONAL INFORMATION

A VERY EXITING EXPLODING STARS codes <<<<<====== this is the only codes work on red templates just log-in manage page click source then paste the codes,or go to extended area put the codes top or buttom 100% it will came up...visit http://pinoybands.page.tl im using that codes for now as an example...

Mind is better than the eyes
______________
<img src="http://lovescents.webs.com/left.gif" border="0"> <a href="http://lovescents.webs.com/apps/profile/profilePage?id=40574415/" target="_blank" class="postlink"><img src="http://lovescents.webs.com/1.gif" border="0"><span style="font-weight: bold;">Lovescents</span> </a><img src="http://lovescents.webs.com/left.gif" border="0"> <a href="http://www.homepage-help.page.tl/" target="_blank" class="postlink"><span style="font-weight: bold;">SUPPORT PAGE</span></a> <img src="http://lovescents.webs.com/left.gif" border="0"> <a href="http://www.own-free-website.com/forum/search.php" target="_blank" class="postlink"><span style="font-weight: bold;">SEARCH IN FORUM</span></a> <img src="http://lovescents.webs.com/left.gif" border="0"> <a href="http://www.own-free-website.com/forum/viewtopic.php?t=5512" target="_blank" class="postlink"><span style="font-weight: bold;">PLEASE READ BEFORE POSTING A NEW TOPIC!!</span></a></span>


Last edited by pinoybands on Sun Aug 31, 2008 3:23 am; edited 2 times in total
Post08/30/2008 at 5:02pm (UTC)    
Post subject:

Thanks for the codes
Post09/02/2008 at 4:27pm (UTC)    
Post subject: thanks

thanks for the code


Last edited by abc21 on Wed Sep 10, 2008 9:22 pm; edited 2 times in total
Post09/09/2008 at 5:17pm (UTC)    
Post subject:

codes not working......???
Post11/09/2008 at 4:24pm (UTC)    
Post subject:

hi..thnx for providing these codes...but mind if i ask something?... how can i edit the text in the flash?... change what it says there... sorry.. im quite noob with JS... Mad
______________

...:::::::::::::::::© 2007 - 2009 Kandy Designs::::::::The Home of Premade Graphics::::::::::::::....
Arrow www.kandydesigns.page.tl

Kandy Designs SUPPORT PAGE PLEASE READ BEFORE POSTING A NEW TOPIC!!!
Post11/17/2008 at 8:09am (UTC)    
Post subject: SOON

ILL BETTER PUT SOME CATCHING EYE OBJECTS CODES HERE S Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing OON
______________
<img src="http://lovescents.webs.com/left.gif" border="0"> <a href="http://lovescents.webs.com/apps/profile/profilePage?id=40574415/" target="_blank" class="postlink"><img src="http://lovescents.webs.com/1.gif" border="0"><span style="font-weight: bold;">Lovescents</span> </a><img src="http://lovescents.webs.com/left.gif" border="0"> <a href="http://www.homepage-help.page.tl/" target="_blank" class="postlink"><span style="font-weight: bold;">SUPPORT PAGE</span></a> <img src="http://lovescents.webs.com/left.gif" border="0"> <a href="http://www.own-free-website.com/forum/search.php" target="_blank" class="postlink"><span style="font-weight: bold;">SEARCH IN FORUM</span></a> <img src="http://lovescents.webs.com/left.gif" border="0"> <a href="http://www.own-free-website.com/forum/viewtopic.php?t=5512" target="_blank" class="postlink"><span style="font-weight: bold;">PLEASE READ BEFORE POSTING A NEW TOPIC!!</span></a></span>
Post10/14/2009 at 11:07am (UTC)    
Post subject: Sahil Jaan(MIT)

Hi,
Hello Dear Viewer we update over site
1@ Widgets
2@ Mp3 Songs
3@ All softwares
4@ Free Sms
5@ Live Tv
6@ Live Weather
7@ Live news.
8@ Horoscope
9@ Calculator
10@Buying And Selling
And Many Many Mor
e

T H A N K S I N A D V A N C E
______________
THE TRADE MAFIA
Post11/12/2009 at 6:53pm (UTC)    
Post subject:

Quote wrote:
Thanks for the codes


Last edited by ovax on Thu Nov 12, 2009 6:53 pm; edited 1 time in total
Post10/13/2013 at 2:35pm (UTC)    
Post subject: good to see

hey buddy, good work but i think you should add preview link for all scripts so it will be easy to learn how to use it? so please....do it
i am waiting to get it
Post03/27/2017 at 12:34pm (UTC)    
Post subject: Re: some eye catching JavaScript codes !!

<SCRIPT LANGUAGE="JavaScript">
{
var name = prompt ('Your name','');
var color = prompt ('Color name','');
document.write("<CENTER><FONT FACE=ARIAdL,VERDANA COLOR="+color+" SIZE=5>Welcome To Web Designer "+name+".</FONT><HR NOSHADE WIDTH=450></CENTER><P>")
}
</SCRIPT>

good script..., i modified with this
<div style="text-align: right;"><SCRIPT LANGUAGE="JavaScript">
{
var name = prompt ('Maukkan Nama Anda','');
document.write
("<RIGHTALIGN><MARQUEE><FONT FACE=ARIAdL,VERDANA COLOR=blue SIZE=3>Selamat Datang Di Website Dwi Studio "+name+"</FONT></MARQUEE><RIGHTALIGN><P>")
}
</SCRIPT></div>

the input text can marquee atutomatically
Post03/27/2017 at 2:42pm (UTC)    
Post subject: Re: some eye catching JavaScript codes !!

<SCRIPT LANGUAGE="JavaScript">
{
var name = prompt ('Your name','');
var color = prompt ('Color name','');
document.write("<CENTER><FONT FACE=ARIAdL,VERDANA COLOR="+color+" SIZE=5>Welcome To Web Designer "+name+".</FONT><HR NOSHADE WIDTH=450></CENTER><P>")
}
</SCRIPT>
[/code]

now im confused with this script how to make the name of the member automaticaly fill ?what code that must be changed ?
example i have a member with database
code = member001
name = paijo
how to make the name of member auto fill / show in script "+name+" when the member inserting the code ?
Post07/05/2019 at 1:19am (UTC)    
Post subject: Thanks for the code

Thanks for the code.
Display posts from previous:   


Powered by phpBB © 2001, 2005 phpBB Group