$dbhost = 'p50mysql249.secureserver.net';
$dbuser = 'newsScroll';
$dbpass = 'JsNews08';
/*$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'password';*/
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'.mysql_error());
$dbname = 'newsScroll';
//$dbname = 'news';
mysql_select_db($dbname);
//--------------------------------------------------------------//
?>
// Original script distributed by http://www.hypergurl.com
// Modified and merged with php by aaron mello 9-2008
//Mike the next few lines let you change the look of your scroll box
// Set the width of the scroll box on the line below (in pixels)
var scrollerwidth="600px"
// Set the height of the scroll box on the line below (in pixels)
var scrollerheight="150px"
// Set the border style width and color of the scroll box on the line below (eg solid 1px #000000)
var brdstyle='solid 3px blue'
// Set the background color of the scroll box on the line below (use hex color codes proceeded by the # sign)
var bgclr='white'
// Set the text color of the links on the line below (use hex color codes proceeded by the # sign)
var txtclr='blue'
// Set the text color of the byline on the line below (use hex color codes proceeded by the # sign)
var bylnclr='blue'
// Set the text for the byline on the line below (DO NOT use any single quotes ')
var byline='Copyright 2008 www.ConsumersNewsService.com'
// Enter the name of the image displayed in the byline below(must be located in the images folder)
var bylnImg=' '
//If you want two byline images set the line below equal to 1, for a single image set to 0 (no '' needed)
var bTwoImages=0
// Set scroll box speed on the line below (larger is faster 1-10)
var scrollerspeed=1
// DO NOT Change anything below this line! //
// Scrollers content goes here! Keep all of the message on the same line!
var scrollercontent=''
Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/s/s/o/ssorleahcim/html/complain-complain/scrollbox/scroll.php on line 69
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/content/s/s/o/ssorleahcim/html/complain-complain/scrollbox/scroll.php on line 69
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/s/s/o/ssorleahcim/html/complain-complain/scrollbox/scroll.php on line 70
var pauseit=1
scrollerspeed=(document.all)?
scrollerspeed : Math.max(1, scrollerspeed-1)
//slow speed down by 1 for NS
var copyspeed=scrollerspeed
var iedom=document.all||document.getElementById
var actualheight=''
var cross_scroller, ns_scroller
var pausespeed=(pauseit==0)? copyspeed: 0
function populate(){
if (iedom){
cross_scroller=document.getElementById? document.getElementById("iescroller") : document.all.iescroller
cross_scroller.style.top=parseInt(scrollerheight)+8+"px"
cross_scroller.innerHTML=scrollercontent
actualheight=cross_scroller.offsetHeight
} else if (document.layers){
ns_scroller=document.ns_scroller.document.ns_scroller2
ns_scroller.top=parseInt(scrollerheight)+8
ns_scroller.document.write(scrollercontent)
ns_scroller.document.close()
actualheight=ns_scroller.document.height
}
lefttime=setInterval("scrollscroller()",20)
}
window.onload=populate
function scrollscroller(){
if (iedom){
if (parseInt(cross_scroller.style.top)>(actualheight*(-1)+8)) {
cross_scroller.style.top=parseInt(cross_scroller.style.top)-copyspeed+"px"
} else
cross_scroller.style.top=parseInt(scrollerheight)+8+"px"
} else
if (document.layers){
if (ns_scroller.top>(actualheight*(-1)+8))
ns_scroller.top-=copyspeed
else
ns_scroller.top=parseInt(scrollerheight)+8
}
} if (iedom||document.layers){
with (document){
if (iedom){
write('