| View previous topic :: View next topic |
| Author |
Message |
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4235 Location: MS
|
Posted: Sat Aug 29, 2009 9:22 am |
|
|
|
| I guess the page I went to is an old page as it wasn't working for me today in Firefox. Still, the removal of "#" is not a bad idea as that is making it a bad link for browsers. |
|
marypearson
Joined: 02 Aug 2009 Posts: 11
|
Posted: Sat Aug 29, 2009 9:24 am Drop Down Menu Problems with Positioning on Page |
|
|
|
But I thought I needed the # to create the anchor tag. Is there a better way to do it?
Thanks!
Mary |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4235 Location: MS
|
Posted: Sat Aug 29, 2009 9:48 am |
|
|
|
Only if you are creating a true named anchor tag, but you seem to be using JavaScript to hide/show the div content below the question and you don't need named anchor links or tag for that.
Isn't this what you are using to hide/show the answer divs ?
| Code: |
<!--
function hideDiv(e) {
document.getElementById(e).style.display = "none";
}
function showDiv(e) {
document.getElementById(e).style.display = "";
}
//--> |
The named anchor tags, if used (I didn't check), are not needed when using that script. |
|
marypearson
Joined: 02 Aug 2009 Posts: 11
|
Posted: Sat Aug 29, 2009 10:28 am Drop Down Menu Problems with Positioning on Page |
|
|
|
Thanks Ron. I'll give it a try. Much appreciated!
Mary |
|
marypearson
Joined: 02 Aug 2009 Posts: 11
|
Posted: Sat Aug 29, 2009 10:37 am Drop Down Menu Problems with Positioning on Page |
|
|
|
Sorry Ron. I don't know what I'm doing. I tried it but I'm doing something wrong. Could you please give me an example of what this should be instead of what it is.
<!--topic Banner Advertising -->
<P class="main3">
<a href="#banner" onclick="JavaScript: showDiv('banner');">Banner Advertising</a><br />
<div style="display: none; background-color: #99ccff; border-color: #000000; border-width: 2px; border-style: solid;" id="banner">
<!--question1 -->
<BR><BR> <a href="#banner" onclick="JavaScript: showDiv('banner1');">1. What's the difference between a "Banner Ad" and a "Personal Ad"?
</a><br />
<div style="display: none; background-color: #ffffff; border-color: #000000; border-width: 2px; border-style: solid;" id="banner1">
<p>
thanks! |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4235 Location: MS
|
Posted: Sat Aug 29, 2009 3:25 pm |
|
|
|
OK. I redid that section of the FAQs:
| Quote: |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<title></title>
<meta http-equiv="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)" />
<meta name="created" content="Sat, 29 Aug 2009 22:47:11 GMT" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<script type="text/javascript" language="javascript">
<!--
function hideDiv(e) {
document.getElementById(e).style.display = "none";
}
function showDiv(e) {
document.getElementById(e).style.display = "";
}
//-->
</script>
<style type="text/css">
div.l_ink {
color: #00f;
text-decoration: underline;
cursor:pointer ;
cursor: hand; /* IE */
}
</style>
</head>
<body>
<!--topic Banner Advertising -->
<p class="main3">
<div class="l_ink" onclick="JavaScript: showDiv('banner');">Banner Advertising</div>
<br/>
<div style="display: none; background-color: #99ccff; border-color: #000000; border-width: 2px; border-style: solid;" id="banner">
<!--question1 -->
<br><br>
<div class="l_ink" onclick="JavaScript: showDiv('banner1');">1. What's the difference between a "Banner Ad" and a "Personal Ad"?</div>
<br>
<div style="display: none; background-color: #ffffff; border-color: #000000; border-width: 2px; border-style: solid;" id="banner1">
<p>
<!--answer1 -->
<p class="main3">
A Banner Ad is a picture/message which is found below the Navigation links on the left side of the website, or across the top of one of the website pages.
<br><br>Banner ads are commercial and are used to promote a website, book, music, etc. There is a charge to have a banner ad on ChristianGays.com
<br><br>A Personal Ad is one which promotes an individual for the sake of meeting others usually for the purpose of a long term relationship. Personal Ads can be posted on the <a target="_blank" href="/osdate/">FREE Gay/Lesbian Dating Service</a>.
</p>
<!--close answer1 window -->
<br><br>
<p align=right><a href="#banner" onclick="JavaScript: hideDiv('banner1');">Close "Difference" Window</a>
</div>
</body></html>
|
If you add the style tags to the page and redo the code for each FAQ, you'll solve the problem. |
|
marypearson
Joined: 02 Aug 2009 Posts: 11
|
Posted: Sat Aug 29, 2009 3:57 pm Drop Down Menu Problems with Positioning on Page |
|
|
|
Awesome!!!! Many, many thanks!!!!
Mary |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4235 Location: MS
|
Posted: Sun Aug 30, 2009 2:56 am |
|
|
|
| You're very welcome. Let me know how it works out for you. |
|
prabu
Joined: 25 Aug 2009 Posts: 5
|
|
marypearson
Joined: 02 Aug 2009 Posts: 11
|
Posted: Thu Sep 03, 2009 4:55 pm Drop Down Menu Problems with Positioning on Page |
|
|
|
Many thanks! Looks like an excellent website. I appreciate it!
Mary |
|
|