Question:

I need help with JavaScript innerHTML.?

by  |  earlier

0 LIKES UnLike

I've been making templates for blogs on BlogSkins.com, and I've been having problems with my coding.

"<span style="cursor:nw-resize;" onClick="document.getElementById ('content').innerHTML=document.getElemen... ('profile').innerHTML"

onmouseover="document.images['profile'... "

onmouseout="document.images['profile']...

<img SRC="http://usera.imagecave.com/xcoffeeb... name="profile" alt="" border="0">

</span><br>"

That is a sample of my navigation coding.

The problem is, when I test it out and click on a link, it only allows me to go to one section (or page) and won't let me go to another one when I click on another link.

Is this confusing?

You'll see what I mean if you go here.

http://blogskins.com/apply.php?sid=207864&action=Preview

 Tags:

   Report

1 ANSWERS


  1. I&#039;m getting a whole bunch of JavaScript errors when I look at the page (I use Firefox with the Error Console plugin installed - I&#039;d advise you to do the same so that you can see what is going wrong.

    Looks like some missing ID names and code block closer.

    Error: document.getElementById(&quot;chat&quot;) is null

    Source File: http://blogskins.com/preview.php?sid=207...

    Line: 1

    Error: document.getElementById(&quot;blog&quot;) is null

    Source File: http://blogskins.com/preview.php?sid=207...

    Line: 1

    Error: document.getElementById(&quot;profile&quot;) is null

    Source File: http://blogskins.com/preview.php?sid=207...

    Line: 1

    Error: document.getElementById(&quot;blog&quot;) is null

    Source File: http://blogskins.com/preview.php?sid=207...

    Line: 1

    Warning: Unexpected end of file while searching for closing } of declaration block.

    Source File: http://blogskins.com/preview.php?sid=207...

    Line: 62

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions