Help me with code please :)

  • 1
  • Question
  • Updated 10 years ago
  • Answered
I have an HTML code for my mouseover menu.
As default when any button is clicked the user is directed to that Page in SAME WINDOW/TAB
I want to keep it this way, except for one link to 'forums'
as it is external link my visitors would get diverted of my site.
Hence i want whenever my visitors click on 'forums' button, the forums should open in different TAB/window.
Can somebody tell me who do i need to add/modify in following code which i m currently using for my menu:

<!-- <SCRIPT LANGUAGE="JavaScript">
</script>

<BODY> <div id=EchoTopic> <a href="http://beautybliss.synthasite.com/ind..." onmouseover="image1.src='http://beautybliss.synthasite.com/res..." onmouseout="image1.src='http://beautybliss.synthasite.com/res...> <img name="image1" src="http://beautybliss.synthasite.com/res..." border=0></a> <br> <a href="http://beautybliss.freeforums.org/" onmouseover="image2.src='http://beautybliss.synthasite.com/res..." onmouseout="image2.src='http://beautybliss.synthasite.com/res...> <img name="image2" src="http://beautybliss.synthasite.com/res..." border=0></a> <br> <a href="http://beautybliss.synthasite.com/new..." onmouseover="image3.src='http://beautybliss.synthasite.com/res..." onmouseout="image3.src='http://beautybliss.synthasite.com/res...> <img name="image3" src="http://beautybliss.synthasite.com/res..." border=0></a> <br> <a href="http://beautybliss.synthasite.com/con..." onmouseover="image4.src='http://beautybliss.synthasite.com/res..." onmouseout="image4.src='http://beautybliss.synthasite.com/res...> <img name="image4" src="http://beautybliss.synthasite.com/res..." border=0></a> <br> <a href="http://beautybliss.synthasite.com/sit..." onmouseover="image5.src='http://beautybliss.synthasite.com/res..." onmouseout="image5.src='http://beautybliss.synthasite.com/res...> <img name="image5" src="http://beautybliss.synthasite.com/res..." border=0></a> <br> </BODY> -->
Photo of Green Girl

Green Girl

  • 531 Posts
  • 12 Reply Likes
  • confident of getting some help

Posted 10 years ago

  • 1
Photo of Green Girl

Green Girl

  • 531 Posts
  • 12 Reply Likes
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hi Monique

To make your link open up in a new window or tab, try adding this code:

<!--<a href="YOUR LINKED SITE/" target="blank">your text or image code</a>-->

BTW.. did you get a chance to look at the menu example I set up for you?
Photo of Green Girl

Green Girl

  • 531 Posts
  • 12 Reply Likes
Yes Littleus, I saw it.
I am still experimenting a bit, if i could work out something simple and appealing then fine, otherwise i would go for your example :)
One more help please.. can you tell me exactly where i should add this piece of code in above code to make it work.. i tried it one or 2 places, but didn't seem to work :(
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hi Monica

You wanted it for your forum link correct?

Replace this code <!--<a href="http://beautybliss.freeforums.org/" --> with <!--<a href="http://beautybliss.freeforums.org/" target="blank"--> just before the onmouseover="image2 blah blah blah
Photo of Green Girl

Green Girl

  • 531 Posts
  • 12 Reply Likes
Thanks alot for help, Littleus :-)
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Sorry Monica that was incorrect.
Here goes again.

<!-- Change this:

href="http://beautybliss.freeforums.org/"

to this:

href="http://beautybliss.freeforums.org/ " target="_blank"

Hope this helps.
-->
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
I had the target part incorrect. I left out the underscore _ _ _ _ ;-)
Photo of Green Girl

Green Girl

  • 531 Posts
  • 12 Reply Likes
Yipee....... Its working...hooray!
Thanks Boomer and Littleus!