Greetings all,
I'm in the process of writing my own forums. I'd like to insert a 'teaser', showing a few lines of a post, displayed when a user rolls over a thread link. Much the same as happens here on daniweb.
Can somebody please explain how this is done.
Thanks, in advance
Taffd

Use php to prepare the preview text and echo some javascript that will display the teaser.

My suggestion if you are as unskilled in javascript as I am, would be to first let php echo some invisible divs each next to the thread link which will have the preview inside them, and use the javascript to set them to visible when the user's mouse hovers. The divs should be absolutely positioned with css, and have a z-index higher than the close by elements, to ensure it hovers over them.

It's not what I would call ideal, but it's what I would do with my current skill level.

It is done with the title attribute with the link

<a href="blah.com" title="This is blah" >blah</a>

Will show This is blah when hovering over the link

Thanks ShawnCplus,
Exactly what I needed. Thanks also to scru, for your input.
Regards
Taffd

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.