Click to See Complete Forum and Search --> : drop-down problem
W8 4me
01-12-2003, 11:25 AM
I am creating a website which consists of one html page - all the sections are hidden until the appropriate links are clicked.
Each section requires that I use an apostrophy where all speech marks occur.
Is there a drop-down list where each option initiates a different javascript function, but uses only apostrophies?
Here is an example of the functions I'm using.
start();return false
Any help is severely appreciated ;)
khalidali63
01-12-2003, 12:11 PM
post your actual pages code here. or a llink to it.
Khalid
W8 4me
01-12-2003, 12:17 PM
<HEAD>
<script>
function start() {
document.getElementById("reveal").innerHTML = "<table width='100%' height='100%'
background='background.jpg' class='background'>
<tr><td><table width='680' align='center'>
<tr><td width='90' align='right' class='last'>
<a href='index.htm'><img src='last.jpg' alt='intro'></a></td><td align='center'
valign='top' style='padding-top: 150px' class='padding'><table width='400'><tr>
<td nowrap><b>12 - 01 - 03</b></td>
<td><marquee width='323'>I bought two
512mb PC133 SDRAM chips within days of
each other, both the same brand. Unfortunately
I cannot use them because Windows 98 SE keeps
throwing up stupid error messages. KILL KILL KILL.</marquee></td></tr><tr><td colspan='2'
align='justify' style='padding-top: 15px'>
<b>Welcome!</b> This website is basically a
hub for all my files, hobbies and interests. To
make it easier on myself, I restricted this website
to one html page - all the sections are hidden until
the desired links are clicked. If you are a web
designer yourself, feel free to rip the source code.
<p>In the past I never used to put as much effort
into the graphical aspect of my websites;
I am more of a html/css/javascript nut.
Saying that, all my efforts may've been for nothing.
Well I'm sort of happy with the design, so until I make something better...this'll have to do.
<p align='center'><a href='#'
onClick='menu();return false'><img src='menu.jpg'></a></td></tr></table></td>
<td width='90' align='left' class='next'><a href='#' onClick='menu();return false'>
<img src='next.jpg' alt='menu'></a></td></tr></table>
</td></tr></table>";
}
</script>
</HEAD>
khalidali63
01-12-2003, 12:40 PM
Help me understand this.
You want to have a drop down list of items.
aon a selection of item from the list you want to display a specific/related text on the page?
W8 4me
01-12-2003, 01:02 PM
My webpage consists of this....
<script>
function start() {
document.getElementById("reveal").innerHTML = "....text, html and DROP-DOWN LIST here..."; }
function aboutme() {
document.getElementById("reveal").innerHTML = "....text, html and DROP-DOWN LIST here..."; }
function mypoems() {
document.getElementById("reveal").innerHTML = "....text, html and DROP-DOWN LIST here..."; }
function dirtyjokes() {
document.getElementById("reveal").innerHTML = "....text, html and DROP-DOWN LIST here..."; }
</script>
I would like the drop-down list to allow my users to toggle between start(), aboutme(), mypoems(), dirtyjokes() etc.... but because the drop-down list will exist inside the innerHTML, all speech marks must be changed to apostrophies.
Hope that clears a few things up!