PDA

View Full Version : Can someone please help me with this?


Iguana
05-31-2003, 11:59 PM
<script language="javascript">
function getname();
{
for (var i=0; i<document.links.length; i++);
{
if (document.links[i]=="http://www.xanga.com/private/");
{
var link = document.links[i];
var text = document.all ? link.innerText : link.text ? link.text : '';
}
}
return text;
}

function showmessage();
{
var name=getname();
if (name="Disfuctional_Mind");
{
alert("heyyy...*lots of huggles and stuff* heh =P");
else if (name="AngeLxbear");
{
alert("heyyy...WHat's up Steph!!");
else if (name="dizzycasper");
{
alert("If this works...Hey...Tell me if that work Carly...");
else if (name="ISwtAngel");
{
alert("Test");
</script>




I have no idea why it wont work...

Any hlp is appreciated, thanks in advance.

Iguana
06-01-2003, 06:24 PM
Nobody?

Black Vivi
06-01-2003, 07:03 PM
try this:

<script language="javascript">
function getname();
{
for (var i=0; i<document.links.length; i++);
{
if (document.links[i]=="http://www.xanga.com/private/");
{
var link = document.links[i];
var text = document.all ? link.innerText : link.text ? link.text : '';
}
}
return text;
}

function showmessage();
{
var name=getname();
if (name="Disfuctional_Mind");
alert("heyyy...*lots of huggles and stuff* heh =P");
else if (name="AngeLxbear");
alert("heyyy...WHat's up Steph!!");
else if (name="dizzycasper");
alert("If this works...Hey...Tell me if that work Carly...");
else if (name="ISwtAngel");
alert("Test");
}
</script>

Iguana
06-04-2003, 02:10 AM
Nope, that didn't work. Any other suggestions?