Log in

View Full Version : Dynamic Content from an HREF



NeoDjinn
03-31-2008, 10:34 PM
Hi,

I've been looking all over the place for an easy to apply CSS/Script/??? that will allow me to have dynamic content displayed into a DIV area when someone clicks the link.

I've tried what is located on the DD.com website but none of them do exactly what I want and the ones that might be close are too hard to figure out how to change them to work.

Escentially when a visitor clicks a link in my list of links then the DOM places the info into the DIV section.

For a lookieloo at what I am talking about here is where it is for now

http://74.244.160.120/TejasMustang

when there click on contacts and what I want is when a visitor clicks one of the links on the left then it'll display the required text in the box on the right.

I tried to use the Tab Content Script (v 2.1) located here... http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm but I cannot figure out how to adapt it to what I want.

If someone know how I can do this I would really appreciate it. Oh, I also want to use this type of thing for displaying pictures in that same bow on the right when they visit the other links that'll show pics. So I guess it'll be a dual use script.

Thanks in Advance.

Medyman
04-01-2008, 02:39 AM
There are a number of ways to do the basic functionality of which you speak.

But before I offer a solution, some questions:

1) Why are you doing it this way? Why not link to actual pages?
2) Since this seems like a business (which you might want to publicize) are you aware of the negative search engine indexing effects of doing this?

NeoDjinn
04-01-2008, 11:39 AM
The reason for me to do it this way is because I don't want to have to code potentially hundreds of sepereat pages just to display a few bits of informational text or unlimited amounts of future pictures.

The search engine question is something I had considered, however at this point it's not an issue because this site needs to have been up two days ago and for now I'm opting to code it as quick as possible with as few pages as possible and then I can work on a more search engine friendly revision.

I hope that helps.

Thanks very much.
:)

tfit
04-03-2008, 04:11 PM
NeoDjinn,

What if you hover the links on the right and have a popup on the right. You could than have it dynamic with ajax I guess, but it wouldn't remain on screen.

Medyman
04-03-2008, 04:56 PM
The reason for me to do it this way is because I don't want to have to code potentially hundreds of sepereat pages just to display a few bits of informational text or unlimited amounts of future pictures.

The search engine question is something I had considered, however at this point it's not an issue because this site needs to have been up two days ago and for now I'm opting to code it as quick as possible with as few pages as possible and then I can work on a more search engine friendly revision.

I hope that helps.

Thanks very much.
:)

Take a look at the tooltip and ajax scripts at DD. Those will be the most help.

Ideally, you should do some planning and switch to a server-side deployment system (i.e. some PHP).