Web Design Forum  
 
Go Back   Web Design Forum > Web Software > Scripts

Reply
 
LinkBack Thread Tools Display Modes
Old 03-11-2009, 04:32 AM   #1
Silver Member
 
AusQB's Avatar
 
Join Date: Jul 2008
Location: Perth, Australia
Posts: 167
Send a message via AIM to AusQB Send a message via MSN to AusQB Send a message via Skype™ to AusQB
Default Dynamic content area

I'm not sure what the correct term for it is, but all I want is simply a script that will populate a single div with content from multiple external htm files.

In other words, I have a single div area for the content and several nav buttons at the top of the page. For each nav button, I want the content in the div area to change to the respective file content.

If possible, it would be nice if this content-swapping had a fade effect to it.
AusQB is offline   Reply With Quote


Old 03-11-2009, 02:54 PM   #2
Silver Member
 
AusQB's Avatar
 
Join Date: Jul 2008
Location: Perth, Australia
Posts: 167
Send a message via AIM to AusQB Send a message via MSN to AusQB Send a message via Skype™ to AusQB
Default

I sort of have this figured out using the innerHTML attribute, apart from one glitch. Every time I make a call that changes the content, the content is displayed a little lower than the previous content. In other words, if I rapidly make calls to change the content, that contents will appear to be moving down the screen.


EDIT: Nevermind, I figured it out. I was writing to the table rather than the cell in the table.


EDIT: New problem. Is there a way to emulate the php include() function in order to import HTML from an external file?

Last edited by AusQB; 03-11-2009 at 05:28 PM.
AusQB is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:17 AM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.