![]() Topic awaiting preservation: HELP!!! (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Aiur, in the Tarsonian Galaxy |
![]() Hey guys I got some javascript problems. I'm trying to make something like this I have an image that when someone clicks on displays a paragraph of text(preferably in a table). This is what I have so far, here is the code I added to the image: code: <a href="javascript:;" onclick="toggleVis('paraOne', 'show');">
code: <p id="paraOne" style="display:none"> blah blah blah </p>
|
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() well.... do you have the toggleVis() function actually defined? I don't see it in your code example. |
Bipolar (III) Inmate From: Aiur, in the Tarsonian Galaxy |
![]()
code: <script>
|
Paranoid (IV) Inmate From: France |
![]() templar654:Hi. You know it would help if you provided [edit update='removed a rant asking the source code of the toggleVis( ) function' /] better if you put the page online. |
Bipolar (III) Inmate From: Aiur, in the Tarsonian Galaxy |
![]() The problem is I can't get it in an external file. It's working fine when I put it in the main page but I can't seem to get it externally. I'm somewhat a beginner in JS and I just can't get anything externally!! |
Paranoid (IV) Inmate From: France |
![]() By externally, you mean like this : code: <html>
code: var current = '';
code: var current=null
|
Bipolar (III) Inmate From: |
![]() Ok i have an external file now the problem is that i want the paragraphs in the file and not the code.. |
Bipolar (III) Inmate From: Aiur, in the Tarsonian Galaxy |
![]() Ok i have an external file now the problem is that i want the paragraphs in the file and not the code.. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() That's a whole nother world of hurt. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() or you could use <iframes> to include the external paragraphs. See your favourite HTML reference for that one. |
Bipolar (III) Inmate From: Aiur, in the Tarsonian Galaxy |
![]() well the reason I need it in an external file is because then I'd have to write every single thing in the main page and that's going to make the file size enormous. I could use iframes but I don't want to use any in-page scrolling just clik on the button and read the para. I'll see what I can do about an url, I'll try to get on up soon. |
Paranoid (IV) Inmate From: Mexico |
![]() quote:
|
Paranoid (IV) Inmate From: Sthlm, Sweden |
![]() Aloso placing content in external/internal js "write-statements" makes it invisible to searchengines, in that case it's better to keep it inside block-level elements that you hide and show. |