PDA

View Full Version : script "Cross Browser marquee II" work in dreamweaver ?



leonidassavvides
05-19-2007, 09:10 AM
http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm
script above work in dreamweaver ? in "test mode[ie7]" work or I must be online ?
I try but when I insert html code appears the orange box and a frame inside[bigger than box] ... when I go to test it a dialog box to choose php/mysql testing server appear, after press ok , ie7 opens but I did not see the box/frame , well ?

leonidassavvides
05-25-2007, 07:30 AM
scroller:dreamweaver layer upward in a box
THE CODE BELOW is a rectangle with a dreamweaver layer. I get script from
http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm
modified somewhat but do NOT work ? I want the dreamweaver layer move upward[scroller] in the box[rectangle] ...

-------------------------------------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">

#marqueecontainer{
position: relative;
width: 400px; /*marquee width */
height: 150px; /*marquee height */
background-color: white;
overflow: hidden;
border: 3px solid orange;
padding: 2px;
padding-left: 4px;
}

.style1 {font-family: Arial, Helvetica, sans-serif}
.style2 {color: #FF0000}
</style>

<script type="text/javascript">

/***********************************************
* Cross browser Marquee II- &#169; 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)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
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
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>

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<noscript>
<div id="marqueecontainer" onMouseOver="copyspeed=pausespeed" onMouseOut="copyspeed=marqueespeed">
<div id="vmarquee" style="position: absolute; width: 98&#37;; overflow: auto;">
<!--YOUR SCROLL CONTENT HERE-->
<div align="center"><strong><font face="Arial, Helvetica, sans-serif" color="#0000FF">Pafos
Car Hire</font></strong> </div>
<h5 align="center" class="style1">We are a reliable Online Car Rental Company
in Cyprus.</h5>
<h5 align="center" class="style1"> Book your car hire for your holiday to
Cyprus, delivery can be made Island wide. Our packages assure, highly competitive
car hire rates. Our prices include delivery & collection, CDW comprehensive
insurance, car theft insurance, 2nd driver's insurance, all local taxes,
multilingual service team, 24 hour emergency service and on road technical
assistance.<br>
<br>
<span class="style2">Cyprus car hire wth no hidden costs </span><br>
<br>
The price you quoted is the price you pay. Check our <a href="index.php">www.paphoscarhire.com</a> low
cost <a href="rates.php">prices</a>.<br>
<br>
<b><font face="Arial" size="2"><span class="style2">Special Services:</span> 24hours
service - All over Cyprus delivery/collection - Always Pay-on-Arrival...it
couldn't be safer , no credit card details have to be given until Rental
Start !</font></b><br>
</h5>
<!--YOUR SCROLL CONTENT HERE-->
</div>
</div>
</noscript>
<p>&nbsp;</p>
</body>
</html>