Helpful Information
 
 
Category: Looking for such a script or service
onclick show news

Im sure its simple to do but im lost! :( I basically want something like this:

http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

BUT text instead of pictures! Such as this:

http://www.blocparty.com/news.php

If you got to the above link you will see that if you click a news story it loads it in the column next to it. I guess the script would be something exactly like the thumbnail one but im lost and not good at this stuff. :confused:

Anyone help me please? I want it to work "onclick" rather than "onmouseover"

All help appreacited cheers. :)

anyone out there who can help or offer advice? :confused: :(

Not sure what you mean by it. The link ( http://www.blocparty.com/news.php ) you provided doesn't have the script.

But maybe you mean something like this:

The js:


function change(text){
document.getElementById("some_id").innerHTML = text;
}


The html:


<a href="javascript:void(0)" onclick="change('this is a test')">Test #1</a>
<a href="javascript:void(0)" onclick="change('this is a test0')">Test #2</a>
<a href="javascript:void(0)" onclick="change('this is a test1')">Test #3</a>
<div id="some_id"></div>

Thats great, just goes to prove i dont know what im talking about, cheers again!

Is that what you wanted? If it is then cheers, if it's not then no cheer for me.

Why not just use an <iframe> ? Makes it much easier, no ?
Somtimes I wonder: why do so many people have something against <iframes> ?
It is basic, but I never had any problems with it in all different browsers.

Perfect situation to use AJAX.










privacy (GDPR)