Archive for the ‘JavaScript Stuffs’ Category

Access Frame into frame

Posted: August 6, 2010 in JavaScript Stuffs

myframe = parent.parent; // window is default
var len = myframe.frames.length;

for(i=0;i<len;i++)
{
alert("parent "+ myframe.frames[i].name);
len1 = myframe.frames[i].frames.length;
alert(len1);

for(j=0;j<len1;j++)
{
alert("child "+ myframe.frames[i].frames[j].name);
}
}

function check()
{
if (cutSpaces(myform.deptname.value)==”)
{
alert (“Department name can’t be blank “);
myform.deptname.focus();
return false;
}

if (cutSpaces(myform.hod.value)==0)
{
alert (“HOD name can’t be blank “);
myform.deptname.focus();
return false;
}

isAlphabet(document.getElementById(‘deptname’), ‘Letters Only Please’);
}

function isAlphabet(elem, helperMsg)
{
alert(elem.value);
var alphaExp = /^[a-zA-Z]+$/;
if(elem.value.match(alphaExp)){
return true;
}
else{
alert(helperMsg);
elem.focus();
return false;
}
}

for(i=0;i<myform.elements.length;i++)
{
alert(myform.elements[i].name +myform.elements[i].id);
}
alert(document.getElementById('subname').value);
alert(myform.subname.value);

window.location.href = “dtsettings.php?QryStatus=Password Changed Successfully”;

Bouncing Image

Posted: December 18, 2007 in JavaScript Stuffs

Heading Bouncing Image

Description JavaScript “Bouncing Image”

Preview N/A

Code

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 3.2 Final//EN”>
<HTML>
<HEAD>
(more…)

Blinking Background

Posted: December 18, 2007 in JavaScript Stuffs

Heading Blinking Background

Description JavaScript “Blinking Background with different Colors”

Preview N/A

Code

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 3.2 Final//EN”>
<HTML>
<HEAD>
(more…)

2-way background images slides

Posted: December 16, 2007 in JavaScript Stuffs

Heading 2-way background images slides

Description JavaScript “Background images slides”

Preview N/A

Code

 <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 3.2 Final//EN”>
<HTML>
<HEAD>
(more…)