Change content automatically and resize.

For system help, all hardware / software topics NOTE: use Coders Corner for all coders topics.

Moderators: Krom, Grendel

Post Reply
User avatar
thewolfe
DBB Admiral
DBB Admiral
Posts: 1987
Joined: Tue Nov 05, 2002 3:01 am
Contact:

Change content automatically and resize.

Post by thewolfe »

Change content automatically and resize.

I would like to change the content on a certain part of my page. I found http://www.dynamicdrive.com/dynamicinde ... iframe.htm which does the job for 7 days in a row.

The problem with it is that the content is not the same size so to get the largest I might have in a weeks period, it leaves a lot of blank space for other days.

So I'm looking for a way to not have to change content manually on a daily basis but have the "window" for the daily stuff adjust to the size of the text so the text under the "daily stuff" would be in a proper relationship and not a mile down the page.

Actually, a "scrolling" window would work if I could adjust the window size and change the content for at least a week at a time.

Any suggestions?
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6459
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Post by fliptw »

internal frames, and tables.
User avatar
thewolfe
DBB Admiral
DBB Admiral
Posts: 1987
Joined: Tue Nov 05, 2002 3:01 am
Contact:

Post by thewolfe »

Not to adept at website design or "jargon", can you elaborate?
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6459
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Post by fliptw »

i-frames.

you don't need javascript to do what you want.
User avatar
KompresZor
DBB Captain
DBB Captain
Posts: 919
Joined: Wed Jul 31, 2002 2:01 am
Location: Clearfield, Pennslyvania

Post by KompresZor »

That script is designed to load content into an i-frame, if you don't use frames in you page that could be your trouble :)
"Description: This script loads a different page into an iframe daily (out of 7 days of the week). Use it to serve up daily, changing content, such as a "tip of the day."
EDIT: lol, if you type i-frame without the "-" it gets filtered to "loser"
User avatar
Lothar
DBB Ghost Admin
DBB Ghost Admin
Posts: 12133
Joined: Thu Nov 05, 1998 12:01 pm
Location: I'm so glad to be home
Contact:

Post by Lothar »

probably left over from the old swear filter... a spammer once came here and posted a "lol" in a long thread, and hid an i-frame that would give you a pr0n popup when you left the page. Hence, the string i-frame (without the dash) was filtered.
User avatar
Testiculese
DBB Material Defender
DBB Material Defender
Posts: 4689
Joined: Sun Nov 11, 2001 3:01 am

Post by Testiculese »

Proper table structure removes the necessity of frames, and % widths ensure that the site shrinks or grows depending on content.
User avatar
thewolfe
DBB Admiral
DBB Admiral
Posts: 1987
Joined: Tue Nov 05, 2002 3:01 am
Contact:

Post by thewolfe »

Thanks for the posts.

I discovered that the Dynamic site script that I was using had a scrollbar that could be turned on so that solved my problem.
Post Reply