Topic awaiting preservation: HELP!!! |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Aiur, in the Tarsonian Galaxy |
posted 04-13-2004 09:35
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 |
posted 04-13-2004 11:01
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 |
posted 04-13-2004 15:03
Hee hee.. I knew there was something missing Here's how it is, it works but I can't get that external file thingy. How do I get that going?? code: <script>
|
Paranoid (IV) Inmate From: France |
posted 04-13-2004 15:04
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 |
posted 04-13-2004 15:29
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 |
posted 04-13-2004 15:44
By externally, you mean like this : code: <html>
code: var current = '';
code: var current=null
|
Bipolar (III) Inmate From: |
posted 04-13-2004 18:26
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 |
posted 04-13-2004 20:41
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 |
posted 04-13-2004 20:48
That's a whole nother world of hurt. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 04-13-2004 20:49
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 |
posted 04-14-2004 07:03
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 |
posted 04-14-2004 07:09
quote:
|
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 04-14-2004 08:46
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. |