scrollable text PLEASE HELP ASAP

This is a discussion on "scrollable text PLEASE HELP ASAP" within the Starting Out section. This forum, and the thread "scrollable text PLEASE HELP ASAP are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 30th, 2007, 01:58
New Member
Join Date: Apr 2007
Location: uk
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
scrollable text PLEASE HELP ASAP

PLEASE HELP

I have been struggling with putting scrollable text into my site ALL day

the code is from:
http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm

It displays perfectly but doesnt scroll when i preview in the browser.

Im using Dreamweaver 8

On IE6

I'd really appreciate it if someone could find the problem in the code and send it back to me

this is the code:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- TITLE  -->
<title>Share The Love - What Is Chlamydia ?</title>
<!-- GLOBAL CSS -->
<link href="style/global.css" rel="stylesheet" type="text/css" media="screen"/>
<!-- JAVASCRIPT -->
<!-- <script type="text/javascript" src="js/global.js"></script> -->
<!-- FAV ICON -->
<link rel="Shortcut Icon" href="http://www.webforumz.com/images/favicon.ico" type="image/x-icon" /> 
<!-- META DATA -->
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="distribution" content="GLOBAL" />
<meta name="revisit-after" content="7 Days" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="robots" content="all" />
<meta name="mssmarttagspreventparsing" content="true" />
<meta name="title" content="title" />
<meta name="subject" content=" " />
<meta name="description" content=" " />
<meta name="keywords" content=" " />
<meta name="author" content=" " />
<meta name="rating" content="safe for kids" />
<meta name="Language" content="en-GB" />
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body onload="MM_preloadImages('images/b_home1.gif','images/b_what1.gif','images/b_symp1.gif','images/b_safe1.gif','images/b_where1.gif','images/b_jonny1.gif','images/b_links1.gif')">

<!-- BODY -->
<div id="bodybg">
 <!-- CONTAINER -->
 <div id="container">
  <!-- CONTENT -->
  <div id="header">
  <img src="http://www.webforumz.com/images/i_logo.gif" alt="Share The Love" />
   
  <!-- EO CONTENT -->
  </div>
  
  
  <!-- CONTENT -->
  <div id="content">
  
  <div id="left"><img src="http://www.webforumz.com/images/i_nav_top.gif" alt="Share The Love" width="188" height="18" style="margin:0; padding:0;" /><div class="whiteBG">
  <a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','images/b_home1.gif',1)"><img src="http://www.webforumz.com/images/b_home.gif" name="Image13" width="188" height="13" border="0" id="Image13" class="navBut" /></a><br />
  <a href="whatis.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','images/b_what1.gif',1)"><img src="http://www.webforumz.com/images/b_what.gif" name="Image14" width="188" height="12" border="0" class="navBut" id="Image14" /></a><br />
  <a href="symptoms.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','images/b_symp1.gif',1)"><img src="http://www.webforumz.com/images/b_symp.gif" name="Image15" width="188" height="12" border="0" class="navBut" id="Image15" /></a><br />
  <a href="amisafe.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','images/b_safe1.gif',1)"><a href="where.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image17','','images/b_where1.gif',1)"><img src="http://www.webforumz.com/images/b_where.gif" name="Image17" width="188" height="12" border="0" class="navBut" id="Image17" /></a><a href="amisafe.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','images/b_safe1.gif',1)"><img src="http://www.webforumz.com/images/b_safe.gif" name="Image16" width="188" height="12" border="0" class="navBut" id="Image16" /></a><br />
  <a href="johnny.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image18','','images/b_jonny1.gif',1)"><img src="http://www.webforumz.com/images/b_jonny.gif" name="Image18" width="188" height="12" border="0" class="navBut" id="Image18" /></a><br />
  <a href="links.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image19','','images/b_links1.gif',1)"><img src="http://www.webforumz.com/images/b_links.gif" name="Image19" width="188" height="12" border="0" class="navBut" id="Image19" /></a><br />
  </div>
  <img src="http://www.webforumz.com/images/i_nav_bot.gif" alt="Share The Love" style="margin:0; padding:0;" />
  </div>
  
  <div id="right"><img src="http://www.webforumz.com/images/main_what.gif" width="447" height="78" /><div class="whiteBG"><br />
  <div class="contentText"><br /><script type="text/javascript">
/******************************************
* Scrollable content script II- © Dynamic Drive (www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
******************************************/
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=5
if (iens6){
document.write('<div id="container" style="position:relative;width:400px;height:160px;border:1px solid black;overflow:hidden">')
document.write('<div id="content" style="position:absolute;width:400px;left:0;top:0">')
}
</script>
<ilayer name="nscontainer" width=400 height=160 clip="0,0,400,160">
<layer name="nscontent" width=400 height=160 visibility=hidden>
<!--INSERT CONTENT HERE-->There often aren't any symptoms, but if left untreated it can lead to infertility. </layer>
</ilayer>
<script language="JavaScript1.2">
if (iens6)
document.write('</div></div>')
</script>
<table width="400"><td width="400" height="8"><p align="right">
<a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)"><img src="http://www.webforumz.com/images/pics/up.gif" width="9" height="5" border="0" /></a>  <a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)"><img src="http://www.webforumz.com/images/pics/down.gif" width="9" height="5" border="0" /></a></p></td>
</table>
<script language="JavaScript1.2">
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",20)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",20)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height
</script>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah</div>
  </div>
  <img src="http://www.webforumz.com/images/i_content_bot.gif" alt="Share The Love" />
  </div>
  
  <br class="clearBoth" /> 
  
  <!-- EO CONTENT -->
  </div>
 <!-- EO CONTAINER -->
 </div>
<!-- EO BODY -->
</div>
</body>
</html>
Thank you in advance

Last edited by karinne; Apr 30th, 2007 at 12:39. Reason: Please use [code]...[/code] tags when displaying code!
Reply With Quote

Reply

Tags
help, scrollable, text

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scrollable text viewing area WebMan76 Starting Out 1 May 29th, 2007 12:38
Dreamweaver8 Scrollable text for Dummies dench82 Scripts and Online Services 12 May 3rd, 2007 17:24
Scrollable Text Box mirracle4 Web Page Design 3 Jul 12th, 2006 10:28
Scrollable Div Help needed hardybabe Web Page Design 7 Jul 10th, 2006 14:50


All times are GMT. The time now is 20:02.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43