Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-02-2002, 11:08 AM   PM User | #1
torian
New to the CF scene

 
Join Date: Jul 2002
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
torian is an unknown quantity at this point
Angry scrollable content

Been looking online for a scrollable-content code, and usually found stuff like this or this .

I need SC code like the first link , but without the horizontal scroll included (or at least not visible on the page)...

Anyone? Please? Help?

=(O.o)=
torian is offline   Reply With Quote
Old 07-02-2002, 11:57 AM   PM User | #2
murphyz
Regular Coder

 
Join Date: Jun 2002
Location: London
Posts: 220
Thanks: 0
Thanked 0 Times in 0 Posts
murphyz is an unknown quantity at this point
try this:

<div id="cdiv" style="OVERFLOW-Y: auto; WIDTH: 92%; HEIGHT: 250px" >
<div align="left">

Insert text here

<div>
</div>

and change the width and height as required.
An example is shown at my site

Mxx
__________________
"Imagination is more important than knowledge" A. Einstein's 'Twin Paradox'
murphyz is offline   Reply With Quote
Old 07-02-2002, 12:55 PM   PM User | #3
torian
New to the CF scene

 
Join Date: Jul 2002
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
torian is an unknown quantity at this point
thanks for the help, this is exactly what i've been looking for.

torian is offline   Reply With Quote
Old 07-07-2002, 08:57 PM   PM User | #4
biggyfries
New Coder

 
Join Date: Jun 2002
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
biggyfries is an unknown quantity at this point
Is there a way to create a link, and have the page/picture appear within the content box?

Any help will be appreciated.

thanks!!

dan
__________________
dan
biggyfries is offline   Reply With Quote
Old 07-07-2002, 11:10 PM   PM User | #5
biggyfries
New Coder

 
Join Date: Jun 2002
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
biggyfries is an unknown quantity at this point
Is there a way to create a link, and have the page/picture appear within the content box?

Any help will be appreciated.

thanks!!

dan
__________________
dan
biggyfries is offline   Reply With Quote
Old 07-07-2002, 11:38 PM   PM User | #6
Bosko
Regular Coder

 
Join Date: Jun 2002
Location: The Netherlands
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Bosko is an unknown quantity at this point
<div id="cdiv" style="OVERFLOW-Y: auto; WIDTH: 92%; HEIGHT: 250px" >
<div align="left" id="blah">

Insert text here

</div>
</div>
<a href="javascript:ChangeContent()">Change it!</a>
<script>
function ChangeContent(){
var x=document.getElementById("blah");
x.innerHTML="text and images <img src=\"test.gif\">";
}
</script>
Bosko is offline   Reply With Quote
Old 07-08-2002, 12:35 AM   PM User | #7
biggyfries
New Coder

 
Join Date: Jun 2002
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
biggyfries is an unknown quantity at this point
That worked!!

thank you very much!!
__________________
dan
biggyfries is offline   Reply With Quote
Old 07-08-2002, 01:11 AM   PM User | #8
Dalsor
New Coder

 
Join Date: Jul 2002
Location: Florida, USA
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Dalsor is an unknown quantity at this point
I was reading this topic and this sounded like the perfect solution to a problem I was experiencing, however, I ran into a brain freeze trying to expand on it.

I added the script as you stated and added a $content1 and $content2 variables to it that would contain the 'home page' content like so:

<script>
$content[1] = "This is a test.";
$content[2] = "This is another test.";
function ChangeContent(type){
var x=document.getElementById("mainContent");
x.innerHTML=$content[type];
}
</script>

<a href="javascript:ChangeContent(2);"
onMouseover="window.status='Return to the Main Page';return true">Home</a><br>

How would I pass the proper $content[Number] to the script? I'm guessing I'm not using the arrays right, but not sure.

Thanks in advance!
Dalsor is offline   Reply With Quote
Old 07-08-2002, 01:20 AM   PM User | #9
Dalsor
New Coder

 
Join Date: Jul 2002
Location: Florida, USA
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Dalsor is an unknown quantity at this point
Nevermind, this post should be followed by a big *Duh!*
Dalsor is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:03 AM.


Advertisement
Log in to turn off these ads.