Saturday, June 14, 2008

I am knew to javascript I am taking a intro to web design class and the whole thing has been easy until now I just do not understand javascript I was wondering what is wrong with this script I am trying to do this assignment where we are trying to prevent against spam and make the names on the page be in reverse to prevent against spam and then make them display as normal I know I have the web page code right but I cannot seem to get the function right here is the code.

function emLink(name- server) {
var rname=stringReverse( name );
var rserver=stringReverse( server );
var email=( +rname@+rserver );
var mailText=document.write( &lt;a href=&quot;mailto:+email">+email</a> )
document.write( +mailText )

}

Thanks
I tried copy and pasting it still didn t work here is the rest of the page this code was not written by me so I assumed it was correct

/*
New Perspectives on HTML and XHTML
Case Problem 1

Name: Jon Brown
Date: 6/5/08
*/

function emLink(name- server) {
var rname = stringReverse(name);
var rserver = stringReverse(server);
var email = (rname+ @ +rserver);
var mailText = document.write( &lt;a href = &quot;mailto: + email + &quot;&gt; + email + &lt;/a&gt; );
document.write(mailText);

}

function stringReverse(textString) {
if (!textString) return ;
var revString= ;
for (i = textString.length-1; i&gt;=0; i--)
revString+=textString.charAt(i)
return revString;
}

The other thing is this is how I have it linked to the webpage I have this at the top of the page before &lt;/head&gt;

and then I have this where I want to apply it

&lt;script type = &quot;disabled-text/javascript&quot;&gt;

emLink(&quot;reldac&quot;- &quot;ude.ortsa.uwm&quot;)

&lt;/script

I have been intersted in computer programming for 2 years. But i do not know what to do.I know HTML-Javascript-Vbscript
But i what to know
1.C
2.C++
3.Java
4.Python

what should i start with?
but i do not know where to start .
can someone HELP ME!!!!!!! THANKS
And what do i need to start computer progarmming thanks
and you can e-mail me to at goku12205@gmail.com
thanks

My friend and I were wondering how to enable Javascript on his computer. YouTube will not work without it apparently.

okay-i just went o youtube to look up a video and it said&quot;Hello- you either have JavaScript turned off or an old version of Adobe s Flash Player&quot; i try to install it but the yellow bar wont pop up?what do i do?

Ever since the update for Yahoo! Mail- I have not been able to fully access my email. First- I could at least see my mail- but there would be no page style. It would be a bunch of typed words but not with the correct format and background.
Now- I cannot even see anything except this dumb message reading:
Yahoo! Mail experienced a login error:

name:TypeError
message:Object expected
number:-2146823281
description:Object expected

Then it appears again after I click ok. After another message reads:
Unable to load mail javascript files.

I know that I have the most updated version because I have checked on the Java site that I have the recommended Version 6.0

PLEASE HELP!!! I NEED THIS EMAIL FOR WORK AND SCHOOL!!

I m not sure what is going on here but I can t watch youtube videos either. I have installed the latest version of Adobe flash player and videos still say I am not able to play them. the message reads
&quot;Hello- you either have JavaScript turned off or an old version of Adobe s Flash Player. Get the latest Flash player.&quot;

For Y! answers- I cant post questions with firefox because I can t seem to get past the page where you have to click preview or cancel. When I click preview the page doesn t move on. It s as if by me cliking preview- it does nothing.

If anyone can give me any helpful information- it would be well appreciated.

No comments: