September 19, 201015 yr Hi, I have a little problem with my javascript text. It begins to scoll to low, outside the box. Any idea how to fix this? See below the code: html: <div id="marqueecontainer" onmouseover="copyspeed=pausespeed" onmouseout="copyspeed=marqueespeed"> <div id="vmarquee" style="position: absolute; width:300px; margin-left:40px; margin-top:100px; border:0; padding:2px"> <!--YOUR SCROLL CONTENT HERE--> <div id="content"> <img src="mar.png" width=16 height=16> Hello I am Alisia Coman </div> and css: #marqueecontainer{ position: relative; width: 470px; /*marquee width */ height: 520px; /*marquee height */ background-color: white; overflow: hidden; border:0; padding: 2px; float:left; padding-left: 4px; margin-left:+450px; margin-top:90px; -moz-border-radius: 15px; border-radius: 15px; background-color:transparent; background-repeat:no-repeat; background-image:url(boxfluture.png) } #content { color:#FA77AB; font-family:Arial, Helvetica, sans-serif; font-weight:bold; }
September 19, 201015 yr Author and javascript: <script type="text/javascript"> /*********************************************** * Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for this script and 100s more. ***********************************************/ var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds) var marqueespeed=2 //Specify marquee scroll speed (larger is faster 1-10) var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)? ////NO NEED TO EDIT BELOW THIS LINE//////////// var copyspeed=marqueespeed var pausespeed=(pauseit==0)? copyspeed: 0 var actualheight='' function scrollmarquee(){ if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+) //if scroller hasn't reached the end of its height cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px" //move scroller upwards else //else, reset to original position cross_marquee.style.top=parseInt(marqueeheight)+8+"px" } function initializemarquee(){ cross_marquee=document.getElementById("vmarquee") cross_marquee.style.top=0 marqueeheight=document.getElementById("marqueecontainer").offsetHeight actualheight=cross_marquee.offsetHeight //height of marquee content (much of which is hidden from view) if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit cross_marquee.style.height=marqueeheight+"px" cross_marquee.style.overflow="scroll" return } setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll) } if (window.addEventListener) window.addEventListener("load", initializemarquee, false) else if (window.attachEvent) window.attachEvent("onload", initializemarquee) else if (document.getElementById) window.onload=initializemarquee </script>
September 20, 201015 yr As far I'm concerend I only see this button and then Hello I am Alisia Coman. it's kinda posted in the upper left of the screen so indeed it has to be in your javascript. I"m going to chek every detail of yours when I'm at home.
September 20, 201015 yr have you a link to the actual page? and have you validated it? looking at the HTML you posted you've not closed all the DIVs but this could be that you're not posting everything?
September 20, 201015 yr Author Hi, For the moment I am working offline. Hoping soon I will have an url address. I am posing againg the code, may I am missing something. The site functions, only the problem I have mentioned I have. Html: <!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>Alisia Coman website</title> <link href="listaalisia.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery-1.3.1.min.js"></script> <script type="text/javascript" src="js/jquery.betterTooltip.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.tTip').betterTooltip({speed: 150, delay: 300}); }); </script> <script type="text/javascript"> /*********************************************** * Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for this script and 100s more. ***********************************************/ var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds) var marqueespeed=2 //Specify marquee scroll speed (larger is faster 1-10) var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)? ////NO NEED TO EDIT BELOW THIS LINE//////////// var copyspeed=marqueespeed var pausespeed=(pauseit==0)? copyspeed: 0 var actualheight='' function scrollmarquee(){ if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+) //if scroller hasn't reached the end of its height cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px" //move scroller upwards else //else, reset to original position cross_marquee.style.top=parseInt(marqueeheight)+8+"px" } function initializemarquee(){ cross_marquee=document.getElementById("vmarquee") cross_marquee.style.top=0 marqueeheight=document.getElementById("marqueecontainer").offsetHeight actualheight=cross_marquee.offsetHeight //height of marquee content (much of which is hidden from view) if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit cross_marquee.style.height=marqueeheight+"px" cross_marquee.style.overflow="scroll" return } setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll) } if (window.addEventListener) window.addEventListener("load", initializemarquee, false) else if (window.attachEvent) window.attachEvent("onload", initializemarquee) else if (document.getElementById) window.onload=initializemarquee </script> </head> <body> <div id="container" ><!--BEGIN CONTAINER--> <div id="clouds"> <!--BEGIN CLOUDS--> <div id="layout"> <form method="get" action="http://www.google.com/search"> <div id="search"> <input name="q" id="s" Onclick="if (value == 'Google Search') {value = ''}" onmouseout="if(value == '') {value = 'Google Search'}" value="Google Search"> <input id="gobtn" name="gobtn" value="" type="submit" /> </div> </form> <!--BEGIN layout--> <div id="tablita"> <div id="swf"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="100"> <param name="movie" value="Untitled-1.swf" /> <param name="quality" value="high" /><param name="wmode" value="transparent"> <embed src="Untitled-1.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="100"></embed> </object> <!--BEGIN layout--> </div> </div> </div> </div> <div id="marqueecontainer" onmouseover="copyspeed=pausespeed" onmouseout="copyspeed=marqueespeed"> <div id="vmarquee" style="position: absolute; width:300px; margin-left:40px; margin-top:100px; border:0; padding:2px"> <div id="content"> <img src="mar.png" width=16 height=16> Hello I am Alisia Coman </div> </div> </div> </div> </div> </div> <div id="iarba"> <div id="tweet" class="tTip" title="Follow me on tweeter" onclick="location.href='http://twitter.com/alisiaro';" style="cursor:pointer;" ></div> <div id="tulpina"></div> <div id="copac"> </div> <div id="home" onclick="location.href='homealisia.html';" style="cursor:pointer;" ><!--BEGIN layout--> </div> <div id="contact" onclick="location.href='contact.html';" style="cursor:pointer;" ><!--BEGIN layout--> </div> <div id="portofolio" onclick="location.href='portofolio.html';" style="cursor:pointer;" ><!--BEGIN layout--> </div> <div id="p2"><!--BEGIN layout--> </div> <div id="p1"><!--BEGIN layout--> </div> <div id="p3"><!--BEGIN layout--> </div> <div id="p4"><!--BEGIN layout--> </div> <div id="bulb"> </div> <div id="icon" onclick="location.href='http://www.facebook.com/home.php?#!/profile.php?id=662159273';" style="cursor:pointer;" > </div> </div> </body> </html> and CSS: *{ padding:0; margin:0; } body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #797979; margin: 0px; padding: 0px; background-color:#fdf8f8; background-image: url(site-alisia_02.png); background-repeat: repeat-x; } #container { width: 1020px; height:300px; margin:auto; } #clouds { width: 1020px; height:150px; margin:auto; background-image: url(clouds.png); position:relative; top:+5px; background-repeat:no-repeat; } #layout { width:860px; height:750px; background-image: url(d.png); background-repeat:no-repeat; position:relative; margin-left:auto; top:+130px; margin-right:auto; margin-top:60px; } #s { width: 120px; height: 20px; position:absolute; margin-left:22px; margin-top:16px; -moz-border-radius: 15px; border-radius: 15px; cursor:default; border-color: #FF3366; border:0px; color:#999999; padding:2px; } #s:focus { width: 120px; height: 20px; border-width:0.1px; border-style:solid; border-color: #FF3366; } #gobtn { width: 78px; height: 40px; cursor: pointer; text-indent: -9999px; background-image: url(gobtn.png); margin-left:160px; margin-top:2px; background-color:transparent; border:0; } #search { width: 170px; height: 58px; background-image: url(bgbtn.png); background-repeat:no-repeat; position:absolute; margin-left:600px; margin-top:-80px; } #tablita { width:500px; height:500px; background-image: url(tablitas.png); background-repeat:no-repeat; position:absolute; margin-left:60px; margin-top:-60px; } #swf { width:180px; height:100px; position:absolute; margin-left:+80px; margin-top:+40px; } #tweet { width:62px; height:84px; background-repeat:no-repeat; background-image: url(tweet_03.gif); position:absolute; margin-left:230px; margin-top:+150px; } .tTip {width: 400px; position: absolute; cursor: pointer; color: #72bcd8; font-weight: bold;} .tip {color: #72bcd8;} .tip { width: 150px; height:90px; padding-top: 32px; overflow: hidden; display: none; position: absolute; z-index: 455; background: transparent url(tooltip.png) no-repeat top;} #home { width:81px; height:65px; background-image: url(btnhome.png); background-repeat:no-repeat; position:absolute; margin-left:380px; margin-top:-170px; } #home:hover { width:81px; height:65px; background-image: url(btnhomer.png); background-repeat:no-repeat; position:absolute; margin-left:380px; margin-top:-170px; } #contact { width:93px; height:89px; background-image: url(btncontact.png); background-repeat:no-repeat; position:absolute; margin-left:255px; margin-top:-203px; left: 95px; } #contact:hover { width:93px; height:89px; background-image: url(btncontactr.png); background-repeat:no-repeat; position:absolute; margin-left:255px; margin-top:-208px; } #portofolio { width:85px; height:82px; background-image: url(btnportf.png); background-repeat:no-repeat; position:absolute; margin-left:295px; margin-top:-130px; left: 79px; } #portofolio:hover { width:85px; height:82px; background-image: url(btnportofr.png); background-repeat:no-repeat; position:absolute; margin-left:295px; margin-top:-130px; } #p2 { width:66px; height:84px; background-image: url(btn2.png); background-repeat:no-repeat; position:absolute; margin-left:240px; margin-top:-227px; left: 95px; } #p2:hover { width:66px; height:84px; background-image: url(btn2r.png); background-repeat:no-repeat; position:absolute; margin-left:240px; margin-top:-227px; left: 95px; } #p1 { width:63px; height:88px; background-image: url(btn1.png); background-repeat:no-repeat; position:absolute; margin-left:240px; margin-top:-130px; left: 95px; } #p1:hover { width:63px; height:88px; background-image: url(bnt1r.png); background-repeat:no-repeat; position:absolute; margin-left:240px; margin-top:-128px; } #p3 { width:99px; height:86px; background-image: url(btn3.png); background-repeat:no-repeat; position:absolute; margin-left:180px; margin-top:-135px; left: 95px; } #p3:hover { width:99px; height:86px; background-image: url(btn3r.png); background-repeat:no-repeat; position:absolute; margin-left:176px; margin-top:-135px; } #p4 { width:94px; height:85px; background-image: url(btn4.png); background-repeat:no-repeat; position:absolute; margin-left:179px; margin-top:-200px; left: 95px; } #p4:hover { width:94px; height:85px; background-image: url(btn4r.png); background-repeat:no-repeat; position:absolute; margin-left:179px; margin-top:-200px; } #tulpina { background-image: url(tulpina_03.png); background-repeat:no-repeat; width:91px; height:368px; position: absolute; margin-top:-150px; margin-left:330px; } #bulb { width:66px; height:51px; background-image: url(bulb.png); background-repeat:no-repeat; position:absolute; margin-left:240px; margin-top:-160px; left: 95px; } #copac { background-image: url(appletree.png); background-repeat:no-repeat; width:230px; height:250px; position: absolute; margin-top:-20px; margin-left:740px; } #iarba { background-image: url(iarba.png); background-repeat:repeat-x; width:100%; height:239px; position: relative; margin-top:+490px; } #marqueecontainer{ position: relative; width: 470px; /*marquee width */ height: 520px; /*marquee height */ background-color: white; overflow: hidden; border:0; padding: 2px; float:left; padding-left: 4px; margin-left:+450px; margin-top:90px; -moz-border-radius: 15px; border-radius: 15px; background-color:transparent; background-repeat:no-repeat; background-image:url(boxfluture.png) } #content { color:#FA77AB; font-family:Arial, Helvetica, sans-serif; font-weight:bold; } #icon { background-image: url(apple-tree_03.png); background-repeat:no-repeat; width:33px; height:30px; position: absolute; margin-top:30px; margin-left:760px; }
September 21, 201015 yr Author Hi, Please see below the link. http://www.alisiacoman.rudisoft.net/ Maybe someone can help me. Thanks, Alisia
September 22, 201015 yr Author May I get a help please, please?I think I have to set the height of the scroling text space and I do not know how? Thanks, Alisia
Create an account or sign in to comment