Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Span help...

Status
Not open for further replies.
May 9, 2000
446
GB
Hi i'm using the following to show / hide some text etc.:

<h5 style=&quot;cursor:pointer; cursor:hand&quot; onClick=&quot;expandit(this)&quot;>Show File Details</h5>
<span style=&quot;display:none&quot; style=&{head};>


First of all can anyone tell me how to have an image to click on instead of the text 'Show File Details'?

Secondly and I'm guessing this is real basic, whats the best way to draw a signle line around the contents shown when the user clicks on the image / text.

And last of all is it possible to have the text / image clicked on change when to something like 'Hide Details' once it has been clicked on.

Cheers
 
An image to click on i'd change
<h5 style=&quot;cursor:pointer; cursor:hand&quot; onClick=&quot;expandit(this)&quot;>Show File Details</h5>
to
<img src=&quot;images/image.gif&quot; alt=&quot;&quot; style=&quot;cursor:pointer; cursor:hand&quot; onClick=&quot;expandit(this)&quot; />

Why do you have cursor:pointer; cursor:hand ?

The thin line, just add a border. I'm suspecting we might need to see more of the code. It should be very easy to add a border when the user clicks or mouseovers the image.

Last question, it's possible but it will need some js or dhtml and again i suspect that the guys who can help you will need to see more of your code...i think.


É ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top