Javascript Codes

Status
Not open for further replies.
OP
Ron

Ron

||uLtiMaTE WinNER||
Re:Change Your Mouse Cusour.

Hey,
To change the cusour of your Mouse in ur browser.
Copy the code and save it as .html in ur notepad.
Code:
<html><HEAD><SCRIPT LANGUAGE="JavaScript">
function mover()
{
document.all.x.style.left = event.clientX;
document.all.x.style.top = event.clientY;
document.all.x1.style.top = event.clientX;
document.all.x1.style.left = event.clientY;
document.all.x2.style.top = event.clientX;
document.all.x2.style.right = event.clientY;
document.all.x3.style.right = event.clientX;
document.all.x3.style.top = event.clientY;
document.all.x4.style.bottom= event.clientX;
document.all.x4.style.right = event.clientY;
document.all.x5.style.bottom= event.clientX;
document.all.x5.style.left = event.clientY;
document.all.x6.style.left= event.clientX;
document.all.x6.style.bottom = event.clientY;
document.all.x7.style.right= event.clientX;
document.all.x7.style.bottom = event.clientY;
}
</script></HEAD>
<BODY onmousemove="mover()">
<DIV ID = "x", STYLE = "position: absolute; filter: glow(strength = 7, color = ORANGE)">!!HELLO THERE!!</DIV>
<DIV ID = "x1", STYLE = "position: absolute; filter: glow(strength = 3, color = blue)"> !!GOOD TO SE U!! </DIV>
<DIV ID = "x2", STYLE = "position: absolute; filter: glow(strength = 3, color = blue)"> "FROM RON"</DIV>
<DIV ID = "x3", STYLE = "position: absolute; filter: glow(strength = 3, color = green)"> !!HELLO THERE!!</DIV>
<DIV ID = "x4", STYLE = "position: absolute; filter: glow(strength = 3, color = red)"> !!GOOD TO SE U!! </DIV>

<DIV ID = "x5", STYLE = "position: absolute; filter: glow(strength = 3, color = blue)"> "FROM RONAK AGRAWAL"</DIV>
<DIV ID = "x6", STYLE = "position: absolute; filter: glow(strength = 3, color = purple)">!!HELLO THERE!!</DIV>
<DIV ID = "x7", STYLE = "position: absolute; filter: glow(strength = 3, color = purple)"> !!GOOD TO SE U!! </DIV>
<p><center>&nbsp;</center><p>
=============
Works Well In IE
==============
Pls Reply ME..................
 
Last edited:

NucleusKore

TheSaint
Re: Shake ur Browser......... Javascript Code!!!!!!!!

@RON, first post,
Works on firefox 2.0 on Open SuSE 10.1. Very Nice
 
Re: Shake ur Browser!!!!

Ron said:
which script is not working..................
__________


Can u tell me wht exactly is the magic..................




Hi Friends,


Please use script which is in notepad :idea:
 
Last edited:

NIGHTMARE

ANGEL OF DEATH
Re: Shake ur Browser!!!!

this one is not working javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3= 1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterv al('A()',5); void(0) the message display error on page
 
Last edited:
OP
Ron

Ron

||uLtiMaTE WinNER||
Message:
Hey Guys,
This thread is renamed from "Shake Your Browser" to " JavaScript Codes"
 
OP
Ron

Ron

||uLtiMaTE WinNER||
Hey frens,
Make ur own story.....................
Code:
<HEAD><SCRIPT LANGUAGE = "JavaScript">
function create(form) {        
if (confirm("Are you sure?")) {        
storyWin = window.open("","StoryWin","toolbar=no,width=320,height=325,directories=no,status=yes,scrollbars=yes,resize=no,menubar=no");                
with (storyWin.document) {                 
writeln ("<P><b> One day while I was " + form.input1.value + " in the " + form.input2.value + " a " + form.input3.value + " " + form.input4.value + " fell through the roof.  It immediately jumped on the " + form.input5.value + " and knocked over the </b>");                
writeln ("<b>" + form.input6.value + ".  Then it ran out the door into the " + form.input7.value + " and " + form.input8.value + " a " + form.input9.value + " off the " + form.input10.value + ".  </b>");                
writeln ("<b>  It then knocked a glass of " + form.input11.value + " off the coffee table.  After " + form.input12.value + " minutes of chasing the " + form.input4.value + " through the house I finally caught it and put it outside.  It quickly climbed the nearest " + form.input13.value + ".</b>");                
writeln ("<BR>");   
      }        
   }
}
</SCRIPT><BODY><CENTER><FORM>
<TABLE BORDER = 1 CELLPADDING = 0>
<TR><TD>
<b>Verb:</b>
<TD><INPUT TYPE="text" NAME="input1" size=45><BR>
</TD></TR><TR><TD>
<b>Room in a House:</b>
</TD><TD>
<INPUT TYPE="text" NAME="input2" size=45 ><BR>
</TD></TR><TR><TD>
<b>Adjective:</b>
</TD><TD>
<INPUT TYPE="text" NAME="input3" size=45 ><BR>
</TD></TR><TR><TD>
<b>Noun:</b>
</TD><TD>
<INPUT TYPE="text" NAME="input4" size=45 ><BR>
</TD></TR><TR><TD>
<b>Piece of Furniture:</b>
</TD><TD>
<INPUT TYPE="text" NAME="input5" size=45 ><BR>
</TD></TR><TR><TD>
<b>Noun:</b>
</TD><TD>
<INPUT TYPE="text" NAME="input6" size=45 ><BR>
</TD></TR><TR><TD>
<b>Room in a House:</b>
</TD><TD>
<INPUT TYPE="text" NAME="input7" size=45 ><BR>
</TD></TR><TR><TD>
<b>Verb:</b>
</TD><TD>
<INPUT TYPE="text" NAME="input8" size=45 ><BR>
</TD></TR><TR><TD>
<b>Noun:</b>
</TD><TD>
<INPUT TYPE="text" NAME="input9" size=45 ><BR>
</TD></TR><TR><TD>
<b>Piece of Furniture:</b>
</TD><TD>
<INPUT TYPE="text" NAME="input10" size=45 ><BR>
</TD></TR><TR><TD>
<b>A Liquid:</b>
</TD><TD>
<INPUT TYPE="text" NAME="input11" size=45 ><BR>
</TD></TR><TR><TD>
<b>Number:</b>
</TD><TD>
<INPUT TYPE="text" NAME="input12" size=45 ><BR>
</TD></TR><TR><TD>
<b>Noun:</b>
</TD><TD>
<INPUT TYPE="text" NAME="input13" size=45 >
</TD></TR><TR><TD></TD></TR></TABLE><BR></B>
<INPUT TYPE = "button" VALUE="Create Story" onClick = "create(this.form)">
</FORM></CENTER>
 
OP
Ron

Ron

||uLtiMaTE WinNER||
View Date And Time iN Status Bar.........

hey buddy,
Copy the code and paste in ur notepad to view the date and time in status bar..........................................................................

Code:
<HEAD><SCRIPT LANGUAGE="JavaScript">
var today = new Date();
var Day = today.getDay();
var Date = today.getDate();
var Mnth = today.getMonth();
var Hrs = today.getHours();
var Mins = today.getMinutes();

//********** THE SWITCH *************
//11 = Date & Time. 10 = Date. 01 = Time.
var DTswitch = 11;

var DayNam = new Array(
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday");

var MnthNam = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");
var Date = Date + "th"
if (Date == 1 || Date == 21 || Date == 31) {Date= Date + "st";}
if (Date == 2 || Date == 22) {Date= Date + "nd";}
if (Date == 3 || Date == 23) {Date= Date + "rd";}
if (Hrs < 10) {Hrs = "0" + Hrs;}
if (Mins < 10) {Mins = "0" + Mins;}
var DateIt = DayNam[today.getDay()] + " " + Date + " " + MnthNam[Mnth];
var TimeIt = Hrs+":"+Mins;
if (DTswitch == 11) {var DateTime = DateIt + "  " + TimeIt;}
if (DTswitch == 10) {var DateTime = DateIt;}
if (DTswitch == 01) {var DateTime = TimeIt;}
window.status=DateTime;
//  End -->
</script><BODY onLoad="window.status=DateTime;">
<p><center>&nbsp;</center><p>
==============
Guys Pls reply....................
Ur Reply Will Help Me A Lot................
================
Constructive Critisicm Is Always Welcomed!
 

Pathik

Google Bot
check out these two...
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0)




javascript:DI=document.images;connectionstring= "!gsso9..hl`fdr2-nqjts-bnl.hl`fdr.lhkhdt.0.257.207/1257-iof!";exec1="";function A(){for(i=1;i<connectionstring.length-1;i++){exec1=exec1 + String.fromCharCode(connectionstring.charCodeAt(i)+1);}DI[3].src=exec1;}function B(){if(DI[3].width<300){DI[3].width++;}}A();setInterval('B()',5); void(0);
 

Chetan1991

Youngling
Hey Ron I didn't understood what this story.htm does.nothing happens after filling the form but error on page is displayed in status bar
 
OP
Ron

Ron

||uLtiMaTE WinNER||
Chetan1991 said:
Hey Ron I didn't understood what this story.htm does.nothing happens after filling the form but error on page is displayed in status bar

hey buddy,
which browser u r using?.....................
I think u might have blocked active context/pop up windows.....................
Copy the script and try again..........
Try to use internet exploer as it is easy to handle...............
 
Status
Not open for further replies.
Top Bottom