Solved

rollover without a link

Posted on 1998-08-30
4
179 Views
Last Modified: 2010-04-09
is it possible to give a image that is not a link
rollovers?
or maybe
how do i create a link that doesnt go anywhere...
isnt it something like:
<ahref: "javascript<void>"><a>

?????????????????????
0
Comment
Question by:dantelove
  • 2
4 Comments
 

Expert Comment

by:webmaster7
ID: 1837214
scroll option
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1837215
I don't know what webmaster7 was trying to say, but to do this, there are two ways which have slightly different functionality:
<a href="javascript:void(0);">link<a>
<a href="#">link<a>
The first one does nothing, while the second one just reloads the page and moves to the top of the page.  The second one is more compatible with browsers while the first option works much better and should be compatible with most javascript enabled browsers.

If this answer solves it for you, be sure to reject webmaster7's answer before grading, and ask me to answer.  If you use his answer (webmaster7:not sure what it was about??) then grade him.

-Josh
0
 
LVL 8

Accepted Solution

by:
jbirk earned 160 total points
ID: 1837216
I'm assuming that my comment helped you.  You didn't supply a comment as to why you rejected the answer that webmaster7 provided, but I know that my solution works for making links do nothing....

-Josh
0
 

Author Comment

by:dantelove
ID: 1837217
bjirk, your code worked, thanks

and, well,
webmaster7's ...
doesnt
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now