• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

need help with java and or flash

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

RangerJoe

All that is Man!
Joined
Nov 24, 2001
Location
Stillwater, Oklahoma
Alright, so I have my website.

www.g2legend.com

it is kind of boring, so I want to spice it up some. I want to make the menu more interesting, so it has a drop down menu for the different parts i am making.

www.racingflix.com has kind of what i am looking for for their "browse videos" option the left menu, but i cant figure out how to get that to work with my site.

I want to make it so when you roll your mouse over the "parts" option is brings up a new menu, either with java (just pops up) or with flash, so it looks like the box is expanding.

as far as i know frontpage does not have this as a set option, and i really dont know javascript all that well to do it on my own.

does anyone perhaps have a preset one that i can modify the text and links and whatnot?

Thanks a bunch.
 
I would link to a site I use this on, but I was told not to link to the site by admins about 6 months ago because the site I use this on inturn links to a NON G rated site that I find funny.

Code:
<p><div id=Out0>
  <input type="submit" value="Link Name" id="Out1" class="Outline" style="cursor: hand"><br>

 <div id=Out1d style="display:None">
<p><a href="http://sublink addy"><h3>sublink</h3></a>

<p><a href="sublinkadd2">sublink2</a>

<p><a href="sublinkaddy3"> sublink3</a>
 </div>

include this at the bottom or top of the page


Code:
<script language="JavaScript">
function clickHandler() {
  var targetId, srcElement, targetElement ;
  el = window.event.srcElement;
  if (el.className == "Outline") {
     targetId = el.id + "d" ;
     targetElement = document.all(targetId) ;
     if (targetElement.style.display == "none") {
        targetElement.style.display = "" ;
        el.src = "" ;
     } else {
        targetElement.style.display = "none" ;
        el.src = "" ;
     }
  }
}
function getonme() {
   el = event.srcElement ;
   if (el.getAttribute("litUp1") != null) {
      el.className = "onme1" ;
   }
   if (el.getAttribute("litUp2") != null) {
      el.className = "onme2" ;
   }
}
function getoffme() {
   el = event.srcElement ;
   if (el.getAttribute("litUp1") != null) {
       el.className = "offme";
   }
   if (el.getAttribute("litUp2") != null) {
       el.className = "offme";
   }
}
document.onclick = clickHandler ;
document.onmouseover = getonme ;
document.onmouseout = getoffme ;
</script>
 
can you PM me the website where this comes from? i cant seem to get it to work. on my website i want the 'parts' link to be the popout selections. but it either gives me errors, or it doesnt pop out.
 
Back