Friday, September 23, 2011

How do I get my computer to recognize an HTML Link for a webpage?

I'm making a webpage at the moment, with a frameset code. I have a column and row setup, with a blank space in the middle.

In the columns, I have buttons with mouseover java linking them all to the main blank space.

Two of my buttons work, however 3 others do not, and there aren't any apparent differences between the general format for the buttons, other than the link changing per each one (%26lt;a href=%26quot;X%26quot;%26gt;).

Any tips on what to do? I'm totally banging my head on my desk trying to think of how I screwed up...How do I get my computer to recognize an HTML Link for a webpage?Couple things here.



First, that's JavaScript, not Java. Those are two entirely different things; best not to get them confused.



Second, ditch the HTML comments in the script element. You don't need that unless you seriously think someone with Netscape Navigator 4 is going to be looking at your page, and your page is not valid HTML with that in there.



Third, be more specific than simply saying the buttons %26quot;don't work%26quot;. Do you mean that the mouseover effect doesn't work? The links don't go where they're supposed to? The links don't do anything at all? If there's an error message, tell us what it is. Without more information about the problem itself it's impossible to really know how to help.



Feel free to email me if you like.How do I get my computer to recognize an HTML Link for a webpage?I would love to help, but I will need to see the code to see where you went wrong... Post it here or email me :)How do I get my computer to recognize an HTML Link for a webpage?You need to put the closing head tag %26lt;/head%26gt; before the opening body tag %26lt;body bgcolor=%26quot;white%26quot; border=%26quot;0%26quot; Scrolling=NO%26gt; like this:





%26lt;html%26gt;

%26lt;head%26gt;







%26lt;SCRIPT LANGUAGE=%26quot;JavaScript%26quot;%26gt;

%26lt;!-- Begin

loadImage1 = new Image();

loadImage1.src = %26quot;bio2.png%26quot;;

staticImage1 = new Image();

staticImage1.src = %26quot;bio.png%26quot;;



loadImage2 = new Image();

loadImage2.src = %26quot;railroads2.png%26quot;;

staticImage2 = new Image();

staticImage2.src = %26quot;railroads.png%26quot;;



loadImage3 = new Image();

loadImage3.src = %26quot;acc2.png%26quot;;

staticImage3 = new Image();

staticImage3.src = %26quot;acc.png%26quot;;



loadImage4 = new Image();

loadImage4.src = %26quot;col2.png%26quot;;

staticImage4 = new Image();

staticImage4.src = %26quot;col.png%26quot;;



loadImage5 = new Image();

loadImage5.src = %26quot;bib2.png%26quot;;

staticImage5 = new Image();

staticImage5.src = %26quot;bib.png%26quot;;



// End --%26gt;

%26lt;/script%26gt;







%26lt;/head%26gt;

%26lt;body bgcolor=%26quot;white%26quot; border=%26quot;0%26quot; Scrolling=NO%26gt;



%26lt;br%26gt;%26lt;br%26gt;





%26lt;a href=%26quot;bio.html%26quot; onmouseover=%26quot;image1.src=loadImage1.src;%26quot; onmouseout=%26quot;image1.src=staticImage1.src;?target=%26quot;main%26quot;%26gt;

%26lt;img name=%26quot;image1%26quot; src=%26quot;bio.png%26quot; border=0%26gt;%26lt;/a%26gt;

4 minutes ago



%26lt;a href=%26quot;railroads.html%26quot; onmouseover=%26quot;image2.src=loadImage2.src;%26quot; onmouseout=%26quot;image2.src=staticImage2.src;?target=%26quot;main%26quot;%26gt;

%26lt;img name=%26quot;image2%26quot; src=%26quot;railroads.png%26quot; border=0%26gt;%26lt;/a%26gt;



%26lt;a href=%26quot;accomplishments.html%26quot; onmouseover=%26quot;image3.src=loadImage3.src;%26quot; onmouseout=%26quot;image3.src=staticImage3.src;?target=%26quot;main%26quot;%26gt;

%26lt;img name=%26quot;image3%26quot; src=%26quot;acc.png%26quot; border=0%26gt;%26lt;/a%26gt;



%26lt;a href=%26quot;col.html%26quot; onmouseover=%26quot;image4.src=loadImage4.src;%26quot; onmouseout=%26quot;image4.src=staticImage4.src;?target=%26quot;main%26quot;%26gt;

%26lt;img name=%26quot;image4%26quot; src=%26quot;col.png%26quot; border=0%26gt;%26lt;/a%26gt;



%26lt;a href=%26quot;bib.html%26quot; onmouseover=%26quot;image5.src=loadImage5.src;%26quot; onmouseout=%26quot;image5.src=staticImage5.src;?target=%26quot;main%26quot;%26gt;

%26lt;img name=%26quot;image5%26quot; src=%26quot;bib.png%26quot; border=0%26gt;%26lt;/a%26gt;





%26lt;/body%26gt;

%26lt;/html%26gt;