Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Eat your variables
Message
From
15/04/2012 02:44:01
 
 
To
14/04/2012 16:32:30
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01541532
Message ID:
01541538
Views:
44
>Hi All,
>
>I want to declare a simple variable of type C, $lcdoc_text, and have its value assigned when the user clicks a link and it gets displayed in another part of the page, as in:
>$lcdoc_text="Can also be used as customs pro forma."
>and displayed elsewhere on the page as the variable
>

lcdoc_text


>
>I'm not a java programmer, so I just can't seem to get the syntax right and make it work.
>
>If you go here https://exportdoc.com/documents.html, you'll see what I mean.
>On the left you see a bunch of links. When you click on one of the links, the image on the right changes.
>What I want to do is add a caption below the image whose value changes when someone clicks one of the links.
>So if someone clicks say, the Airway Bill, then I want to add a caption (where it now says lcdoc_text) saying:
>"Prints both plain paper and multipart versions"
>and so on.
>
>Thanks
>Luke
<html>
<head>
<title></title>
<script type="text/javascript">
    function showText(txt) {
        document.getElementById("lcDoc").innerHTML = txt;
    }
</script>
</head>
<body>
<a href="pages/JPEG/awb.jpg" target="frame" onclick="showText('Prints both plain paper and multipart versions')">Air WayBill (Neutral)</a>
<p id="lcDoc"></p>
</body>
</html>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform