dereksheahan
asked on
Testimonials from Database (MYSQL PHP) Problem
Hi All,
This is a fairly simple problem just don't know the exact code to put in and where. I have a testimonals section scrolling on the side of a page. At the moment I have it set up to display just text I entered but I would like if it could draw the text from a database. I have a database set up with entries to use (Table: feedback_table, Fields: feedback_id and feedback_text and approved). So from the database I want it to display only the records where approved = 1 . I'm using PHP and MYSQL.
Can anyone help? Here is the code I have so far for the scroller that works fine.
Thanks,
Derek
<marquee loop="infinite" behavior="scroll" direction="up" height="95px" width="205" scrollamount="1" scrolldelay="65" truespeed="" onmouseover="this.stop()" onmouseout="this.start()"> <a href="" title="Sample" onmouseover="self.status=' Sample'; return true;" return true;" ;="">Sample</a> <a href="" title="Sample" onmouseover="self.status=' IE Domain Names'; return true;" onmouseout="self.status=' '; return true;" ;="">Sample Text<br><br></a> <br><br> </marquee>
This is a fairly simple problem just don't know the exact code to put in and where. I have a testimonals section scrolling on the side of a page. At the moment I have it set up to display just text I entered but I would like if it could draw the text from a database. I have a database set up with entries to use (Table: feedback_table, Fields: feedback_id and feedback_text and approved). So from the database I want it to display only the records where approved = 1 . I'm using PHP and MYSQL.
Can anyone help? Here is the code I have so far for the scroller that works fine.
Thanks,
Derek
<marquee loop="infinite" behavior="scroll" direction="up" height="95px" width="205" scrollamount="1" scrolldelay="65" truespeed="" onmouseover="this.stop()" onmouseout="this.start()">
ASKER
Hi Jason,
Thanks for your help. No I wasn't aware that marquee was no longer widely supported and I am open to other ways of displaying the information?
Cheers,
Derek
Thanks for your help. No I wasn't aware that marquee was no longer widely supported and I am open to other ways of displaying the information?
Cheers,
Derek
Depends on whether or not you want it to auto-scroll or not. If not, then stick the information inside a div tag and set it to vertical overflow and scrolling. If you want it to auto-scroll, I'll have to do some extra research to figure it out. Flash springs to mind, but I don't know if that's a valid solution for you.
ASKER
Hi Jason,
Yeah I think I'd like it scrolling. If you have any other suggestions other the marquee method then that'd be great.
Thanks,
Derek
Yeah I think I'd like it scrolling. If you have any other suggestions other the marquee method then that'd be great.
Thanks,
Derek
ASKER
I'd like to avoid using Flash for this site if possible
If not Flash, then I would go with a pure javascript solution, such as this one:
http://www.scriptasylum.com/scrollers/marquee/mq_horizontal.html
http://www.scriptasylum.com/scrollers/marquee/mq_horizontal.html
ASKER
Hi Jason,
I now have the replacement marquee in the header of the page. The only that remains is displaying the dynamic text from the database into the scroller. I've tried setting up a record-set on the page and displaying the results in the var content of the scroller like so
var content = <?php echo $row_rsFeedback['feed_feed back_text' ]; ?> - <?php echo $row_rsFeedback['feed_name ']; ?>
Obviously, in the above code I want the Feedback text to be displayed and followed each time by the name of the feedback poster.
when I refresh the page with this code the scroller no longer appears? Is is possible to include php code in this section? If not, then what do you think is the best way to access this info from the database?
Much obliged,
Derek
I now have the replacement marquee in the header of the page. The only that remains is displaying the dynamic text from the database into the scroller. I've tried setting up a record-set on the page and displaying the results in the var content of the scroller like so
var content = <?php echo $row_rsFeedback['feed_feed
Obviously, in the above code I want the Feedback text to be displayed and followed each time by the name of the feedback poster.
when I refresh the page with this code the scroller no longer appears? Is is possible to include php code in this section? If not, then what do you think is the best way to access this info from the database?
Much obliged,
Derek
In theory, you should be able to insert the code there. I didn't look too closely at it before, but I see now heavy use of single quotes in the text values which might screw up the PHP calls.
It may be that you should preprocess the testimonials and assign it to a variable in the javascript and then call that variable in the scroller.
It may be that you should preprocess the testimonials and assign it to a variable in the javascript and then call that variable in the scroller.
ASKER
I'm not too familiar with the Javascript langauge. How would I assign these variables and then call them from the database?
Thanks,
Derek
Thanks,
Derek
I was afraid you'd ask that :)
Post the entire page code, please. I'll need to futz with it on this end.
Post the entire page code, please. I'll need to futz with it on this end.
ASKER
Thanks a mil! So.. the first section contains the insert of the script you suggested and below it is the call to the database.
<script language="javascript">
/************************* ********** ********
Vertical Scroller (Marquee Replacement) v-1.3
Brian Gosselin - http://scriptasylum.com
Version notes:
V-1.0: Initial release.
V-1.1: Fixed bug in NS6 where page shrinks and grows as
content scrolls. You no longer have to specify
content height, the script does this for you.
V-1.2: Fixed a bug in NS4 where scrolling content would
dictate the bottom boundary of box script.
V-1.3: Added selectable support for pausing the scrolling
when box moused-over.
************************** ********** *******/
//ENTER CONTENT TO SCROLL BELOW.
var content=<?php echo $row_rsFeedback['feed_feed back_text' ]; ?> - <?php echo $row_rsFeedback['feed_name ']; ?>;
var boxheight=150; // BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=300; // BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#FFF6e9"; // BACKGROUND BOX COLOR.
var speed=50; // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=1; // PIXELS "STEPS" PER REPITITION.
var godown=false; // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE
var pauseOnmouseover=true; //SET TO "true" TO ENABLE PAUSE WHEN MOUSEOVER, "false" TO DISABLE IT.
// DO NOT EDIT BEYOND THIS POINT
var outer,inner,elementheight, ref,refX,r efY;
var w3c=(document.getElementBy Id)?true:f alse;
var ns4=(document.layers)?true :false;
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf( "Netscape" )>=0)?true :false;
var txt='';
var goscroll=true;
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td >';
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width='+boxwidth+' height='+boxheight+'></ila yer>';
txt+='</td></tr></table>'
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width='+boxwidth+' height='+boxheight+' '+((pauseOnmouseover)? 'onmouseover="goscroll=fal se" onmouseout="goscroll=true" ':'')+'>';
txt+='<layer name="inner" width='+(boxwidth-4)+' height='+(boxheight-4)+' visibility="hidden" left="2" top="2" >'+content+'</layer>';
txt+='</layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; background-color:'+boxcolo r+';"></di v>';
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden; background-color:'+boxcolo r+'; overflow:hidden" '+((pauseOnmouseover)? 'onmouseover="goscroll=fal se" onmouseout="goscroll=true" ':'')+'>';
txt+='<div id="inner" style="position:absolute; visibility:hidden; left:2px; top:2px; width:'+(boxwidth-4)+'; overflow:hidden; cursor:default;" '+((pauseOnmouseover)? 'onmouseover="goscroll=fal se" onmouseout="goscroll=true" ':'')+'>'+ content+'< /div>';
txt+='</div>';
}
document.write(txt);
txt='';
function getElHeight(el){
if(ns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top ;
else if(ie4||ie5)return (el.style.height)? el.style.height : el.clientHeight;
else return (el.style.height)? parseInt(el.style.height): parseInt(e l.offsetHe ight);
}
function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4||w3c){
x = 0;
while(el.offsetParent!=nul l){
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}
function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4||w3c){
y=0;
while(el.offsetParent!=nul l){
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}
function scrollbox(){
if(goscroll){
if(ns4){
inner.top+=(godown)? pixelstep: -pixelstep;
if(godown){
if(inner.top>boxheight)inn er.top=-el ementheigh t;
}else{
if(inner.top<2-elementheig ht)inner.t op=boxheig ht+2;
}}else{
inner.style.top=parseInt(i nner.style .top)+((go down)? pixelstep: -pixelstep)+'px';
if(godown){
if(parseInt(inner.style.to p)>boxheig ht)inner.s tyle.top=- elementhei ght+'px';
}else{
if(parseInt(inner.style.to p)<2-eleme ntheight)i nner.style .top=boxhe ight+2+'px ';
}}}}
window.onresize=function() {
if(ns4)setTimeout('history .go(0)', 400);
else{
outer.style.left=getPageLe ft(ref)+'p x';
outer.style.top=getPageTop (ref)+'px' ;
}}
window.onload=function(){
outer=(ns4)?document.layer s['outer'] :(ie4)?doc ument.all[ 'outer']:d ocument.ge tElementBy Id('outer' );
inner=(ns4)?outer.document .layers['i nner']:(ie 4)?documen t.all['inn er']:docum ent.getEle mentById(' inner');
ref=(ns4)?document.layers[ 'ref']:(ie 4)?documen t.all['ref ']:documen t.getEleme ntById('re f');
elementheight=getElHeight( inner);
if(ns4){
outer.moveTo(getPageLeft(r ef),getPag eTop(ref)) ;
outer.clip.width=boxwidth;
outer.clip.height=boxheigh t;
inner.top=(godown)? -elementheight : boxheight-2;
inner.clip.width=boxwidth- 4;
inner.clip.height=elementh eight;
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLe ft(ref)+'p x';
outer.style.top=getPageTop (ref)+'px' ;
inner.style.top=((godown)? -elementheight : boxheight)+'px';
inner.style.clip='rect(0px , '+(boxwidth-4)+'px, '+(elementheight)+'px, 0px)';
outer.style.visibility="vi sible";
inner.style.visibility="vi sible";
}
setInterval('scrollbox()', speed);
}
</script>
<?php require_once('Connections/ GSM_mobile .php'); ?>
<?php
mysql_select_db($database_ GSM_mobile , $GSM_mobile);
$query_rsFeedback = "SELECT feed_feedback_text, online, feedback_table.feed_name FROM feedback_table WHERE feedback_table.online = 1";
$rsFeedback = mysql_query($query_rsFeedb ack, $GSM_mobile) or die(mysql_error());
$row_rsFeedback = mysql_fetch_assoc($rsFeedb ack);
$totalRows_rsFeedback = mysql_num_rows($rsFeedback );
?>
<style type="text/css">
<!--
.style1 {font-size: 9px}
-->
</style><form id="form1" name="form1" method="post" action="">
<?php do { ?>
<p></p>
<?php } while ($row_rsFeedback = mysql_fetch_assoc($rsFeedb ack)); ?><p>
<label></label>
</p>
<p> </p>
</form>
<p>
<?php
mysql_free_result($rsFeedb ack);
?>
</p>
<script language="javascript">
/*************************
Vertical Scroller (Marquee Replacement) v-1.3
Brian Gosselin - http://scriptasylum.com
Version notes:
V-1.0: Initial release.
V-1.1: Fixed bug in NS6 where page shrinks and grows as
content scrolls. You no longer have to specify
content height, the script does this for you.
V-1.2: Fixed a bug in NS4 where scrolling content would
dictate the bottom boundary of box script.
V-1.3: Added selectable support for pausing the scrolling
when box moused-over.
**************************
//ENTER CONTENT TO SCROLL BELOW.
var content=<?php echo $row_rsFeedback['feed_feed
var boxheight=150; // BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=300; // BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#FFF6e9"; // BACKGROUND BOX COLOR.
var speed=50; // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=1; // PIXELS "STEPS" PER REPITITION.
var godown=false; // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE
var pauseOnmouseover=true; //SET TO "true" TO ENABLE PAUSE WHEN MOUSEOVER, "false" TO DISABLE IT.
// DO NOT EDIT BEYOND THIS POINT
var outer,inner,elementheight,
var w3c=(document.getElementBy
var ns4=(document.layers)?true
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf(
var txt='';
var goscroll=true;
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width='+boxwidth+' height='+boxheight+'></ila
txt+='</td></tr></table>'
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width='+boxwidth+' height='+boxheight+' '+((pauseOnmouseover)? 'onmouseover="goscroll=fal
txt+='<layer name="inner" width='+(boxwidth-4)+' height='+(boxheight-4)+' visibility="hidden" left="2" top="2" >'+content+'</layer>';
txt+='</layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; background-color:'+boxcolo
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden; background-color:'+boxcolo
txt+='<div id="inner" style="position:absolute; visibility:hidden; left:2px; top:2px; width:'+(boxwidth-4)+'; overflow:hidden; cursor:default;" '+((pauseOnmouseover)? 'onmouseover="goscroll=fal
txt+='</div>';
}
document.write(txt);
txt='';
function getElHeight(el){
if(ns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top
else if(ie4||ie5)return (el.style.height)? el.style.height : el.clientHeight;
else return (el.style.height)? parseInt(el.style.height):
}
function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4||w3c){
x = 0;
while(el.offsetParent!=nul
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}
function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4||w3c){
y=0;
while(el.offsetParent!=nul
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}
function scrollbox(){
if(goscroll){
if(ns4){
inner.top+=(godown)? pixelstep: -pixelstep;
if(godown){
if(inner.top>boxheight)inn
}else{
if(inner.top<2-elementheig
}}else{
inner.style.top=parseInt(i
if(godown){
if(parseInt(inner.style.to
}else{
if(parseInt(inner.style.to
}}}}
window.onresize=function()
if(ns4)setTimeout('history
else{
outer.style.left=getPageLe
outer.style.top=getPageTop
}}
window.onload=function(){
outer=(ns4)?document.layer
inner=(ns4)?outer.document
ref=(ns4)?document.layers[
elementheight=getElHeight(
if(ns4){
outer.moveTo(getPageLeft(r
outer.clip.width=boxwidth;
outer.clip.height=boxheigh
inner.top=(godown)? -elementheight : boxheight-2;
inner.clip.width=boxwidth-
inner.clip.height=elementh
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLe
outer.style.top=getPageTop
inner.style.top=((godown)?
inner.style.clip='rect(0px
outer.style.visibility="vi
inner.style.visibility="vi
}
setInterval('scrollbox()',
}
</script>
<?php require_once('Connections/
<?php
mysql_select_db($database_
$query_rsFeedback = "SELECT feed_feedback_text, online, feedback_table.feed_name FROM feedback_table WHERE feedback_table.online = 1";
$rsFeedback = mysql_query($query_rsFeedb
$row_rsFeedback = mysql_fetch_assoc($rsFeedb
$totalRows_rsFeedback = mysql_num_rows($rsFeedback
?>
<style type="text/css">
<!--
.style1 {font-size: 9px}
-->
</style><form id="form1" name="form1" method="post" action="">
<?php do { ?>
<p></p>
<?php } while ($row_rsFeedback = mysql_fetch_assoc($rsFeedb
<label></label>
</p>
<p> </p>
</form>
<p>
<?php
mysql_free_result($rsFeedb
?>
</p>
Okay, you have things a little backwards. Also, I needed the entire page source, not just selected sections. It makes it easier to see if you have stuff in the right place or not.
The following appears to write correct code. If it still doesn't work, it may an issue with this javascript that is beyond my ability to troubleshoot. Cut and paste the whole thing to test it. Use view-source on the published page to check and see if the call to the database is processed...you should see the var content variable filled out with testimonials.:
<?php require_once('Connections/ GSM_mobile .php'); ?>
<?php
mysql_select_db($database_ GSM_mobile , $GSM_mobile);
$query_rsFeedback = "SELECT feed_feedback_text, online, feedback_table.feed_name FROM feedback_table WHERE feedback_table.online = 1";
$rsFeedback = mysql_query($query_rsFeedb ack, $GSM_mobile) or die(mysql_error());
$row_rsFeedback = mysql_fetch_assoc($rsFeedb ack);
$totalRows_rsFeedback = mysql_num_rows($rsFeedback );
//change below. Added a loop to output the contents of the recordset
do {
$content .= $row_rsFeedback['feed_feed back_text' ]." - ".$row_rsFeedback['feed_na me'];
} while ($row_rsFeedback = mysql_fetch_assoc($rsFeedb ack));
?>
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<table cellpadding=0 cellspacing=0 border=1><tr><td>
<script language="javascript">
/************************* ********** ********
Horizontal Scroller (Marquee Replacement) v-1.2
Brian Gosselin - http://scritpasylum.com
Version info:
V-1.0: Initial release.
V-1.1: Fixed a bug where the content causes parent container
element to shrink and grow in NS6.
V-1.2: Added selectable support for pausing the scrolling
when box moused-over.
************************** ********** *******/
//ENTER CONTENT TO SCROLL BELOW.
// So here we add the PHP variable from the loop above. This should write the content to the javascript.
var content='<?php echo $content; ?>';
var boxheight=45; //BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=390; //BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#FFF6e9"; //BACKGROUND BOX COLOR.
var speed=60; //SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=2; //PIXELS "STEPS" PER REPITITION.
var goright=false; //LEFT TO RIGHT=TRUE , RIGHT TO LEFT=FALSE
var pauseOnmouseover=true; //SET TO "true" TO ENABLE PAUSE WHEN MOUSEOVER, "false" TO DISABLE IT.
//** DO NOT EDIT BEYOND THIS POINT **
var outer,inner,ref,elementwid th;
var w3c=(document.getElementBy Id)?true:f alse;
var ns4=(document.layers)?true :false;
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf( "Netscape" )>=0)?true :false;
var txt='';
var goscroll=true;
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td >';
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width="'+boxwidth+'" height="'+boxheight+'"></i layer>';
txt+='</td></tr></table>';
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width="'+boxwidth+'" height="'+boxheight+'" '+((pauseOnmouseover)? 'onmouseover="goscroll=fal se" onmouseout="goscroll=true" ':'')+'>';
txt+='<layer name="inner" visibility="hidden" left="2" top="2">';
txt+=content;
txt+='</layer></layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; visibility:visible; background-color:'+boxcolo r+';" '+((pauseOnmouseover)? 'onmouseover="goscroll=fal se" onmouseout="goscroll=true" ':'')+'></ div>';
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden; background-color:'+boxcolo r+'; overflow:hidden;">';
txt+='<div id="inner" style="position:absolute; visibility:hidden; left:2px; top:2px; overflow:hidden; cursor:default;" '+((pauseOnmouseover)? 'onmouseover="goscroll=fal se" onmouseout="goscroll=true" ':'')+'>';
txt+=content;
txt+='</div></div>';
}
document.write(txt);
txt=0;
function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4||w3c){
x = 0;
while(el.offsetParent!=nul l){
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}
function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4||w3c){
y=0;
while(el.offsetParent!=nul l){
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}
function getElWidth(el){
if(ns4)return (el.document.width)? el.document.width : el.clip.right-el.clip.left ;
else if(ie4||ie5)return (el.style.width)? el.style.width:el.clientWi dth;
else if(w3c)return (el.style.width)?parseInt( el.style.w idth):pars eInt(el.of fsetWidth) ;
else return -1;
}
window.onresize=function() {
if(ns4)setTimeout('history .go(0)', 400);
else{
outer.style.left=getPageLe ft(ref)+'p x';
outer.style.top=getPageTop (ref)+'px' ;
}}
function scrollbox(){
if(goscroll){
if(ns4){
inner.left+=(goright)? pixelstep: -pixelstep;
inner.clip.right=(boxwidth -inner.lef t-2>boxwid th)? boxwidth-2 : boxwidth-inner.left-2;
inner.clip.left=-inner.lef t+2;
if(goright){
if(inner.left>boxwidth)inn er.left=-e lementwidt h;
}else{
if(inner.left<-elementwidt h)inner.le ft=boxwidt h+2;
}}else{
inner.style.left=parseInt( inner.styl e.left)+(( goright)? pixelstep: -pixelstep)+'px';
if(goright){
if(parseInt(inner.style.le ft)>boxwid th)inner.s tyle.left= -elementwi dth+'px';
}else{
if(parseInt(inner.style.le ft)<-eleme ntwidth)in ner.style. left=boxwi dth+2+'px' ;
}}}}
window.onload=function(){
ref=(ns4)?document.layers[ 'ref']:(ie 4)?documen t.all['ref ']:documen t.getEleme ntById('re f');
outer=(ns4)?document.layer s['outer'] :(ie4)?doc ument.all[ 'outer']:d ocument.ge tElementBy Id('outer' );
inner=(ns4)?outer.document .layers['i nner']:(ie 4)?documen t.all['inn er']:docum ent.getEle mentById(' inner');
elementwidth=getElWidth(in ner);
if(ns4){
outer.clip.width=boxwidth;
outer.clip.height=boxheigh t;
outer.moveTo(getPageLeft(r ef),getPag eTop(ref)) ;
inner.left=(goright)? -elementwidth : boxwidth-2;
inner.clip.width=0
inner.clip.height=boxheigh t-4;
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLe ft(ref)+'p x';
outer.style.top=getPageTop (ref)+'px' ;
inner.style.width=elementw idth+'px';
inner.style.left=((goright )? -elementwidth : boxwidth-2)+'px';
inner.style.visibility="vi sible";
}
setInterval('scrollbox()', speed);
}
</script>
</td></tr></table>
</body>
</html>
<?php
mysql_free_result($rsFeedb ack);
?>
The following appears to write correct code. If it still doesn't work, it may an issue with this javascript that is beyond my ability to troubleshoot. Cut and paste the whole thing to test it. Use view-source on the published page to check and see if the call to the database is processed...you should see the var content variable filled out with testimonials.:
<?php require_once('Connections/
<?php
mysql_select_db($database_
$query_rsFeedback = "SELECT feed_feedback_text, online, feedback_table.feed_name FROM feedback_table WHERE feedback_table.online = 1";
$rsFeedback = mysql_query($query_rsFeedb
$row_rsFeedback = mysql_fetch_assoc($rsFeedb
$totalRows_rsFeedback = mysql_num_rows($rsFeedback
//change below. Added a loop to output the contents of the recordset
do {
$content .= $row_rsFeedback['feed_feed
} while ($row_rsFeedback = mysql_fetch_assoc($rsFeedb
?>
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<table cellpadding=0 cellspacing=0 border=1><tr><td>
<script language="javascript">
/*************************
Horizontal Scroller (Marquee Replacement) v-1.2
Brian Gosselin - http://scritpasylum.com
Version info:
V-1.0: Initial release.
V-1.1: Fixed a bug where the content causes parent container
element to shrink and grow in NS6.
V-1.2: Added selectable support for pausing the scrolling
when box moused-over.
**************************
//ENTER CONTENT TO SCROLL BELOW.
// So here we add the PHP variable from the loop above. This should write the content to the javascript.
var content='<?php echo $content; ?>';
var boxheight=45; //BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=390; //BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#FFF6e9"; //BACKGROUND BOX COLOR.
var speed=60; //SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=2; //PIXELS "STEPS" PER REPITITION.
var goright=false; //LEFT TO RIGHT=TRUE , RIGHT TO LEFT=FALSE
var pauseOnmouseover=true; //SET TO "true" TO ENABLE PAUSE WHEN MOUSEOVER, "false" TO DISABLE IT.
//** DO NOT EDIT BEYOND THIS POINT **
var outer,inner,ref,elementwid
var w3c=(document.getElementBy
var ns4=(document.layers)?true
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf(
var txt='';
var goscroll=true;
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width="'+boxwidth+'" height="'+boxheight+'"></i
txt+='</td></tr></table>';
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width="'+boxwidth+'" height="'+boxheight+'" '+((pauseOnmouseover)? 'onmouseover="goscroll=fal
txt+='<layer name="inner" visibility="hidden" left="2" top="2">';
txt+=content;
txt+='</layer></layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; visibility:visible; background-color:'+boxcolo
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden; background-color:'+boxcolo
txt+='<div id="inner" style="position:absolute; visibility:hidden; left:2px; top:2px; overflow:hidden; cursor:default;" '+((pauseOnmouseover)? 'onmouseover="goscroll=fal
txt+=content;
txt+='</div></div>';
}
document.write(txt);
txt=0;
function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4||w3c){
x = 0;
while(el.offsetParent!=nul
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}
function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4||w3c){
y=0;
while(el.offsetParent!=nul
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}
function getElWidth(el){
if(ns4)return (el.document.width)? el.document.width : el.clip.right-el.clip.left
else if(ie4||ie5)return (el.style.width)? el.style.width:el.clientWi
else if(w3c)return (el.style.width)?parseInt(
else return -1;
}
window.onresize=function()
if(ns4)setTimeout('history
else{
outer.style.left=getPageLe
outer.style.top=getPageTop
}}
function scrollbox(){
if(goscroll){
if(ns4){
inner.left+=(goright)? pixelstep: -pixelstep;
inner.clip.right=(boxwidth
inner.clip.left=-inner.lef
if(goright){
if(inner.left>boxwidth)inn
}else{
if(inner.left<-elementwidt
}}else{
inner.style.left=parseInt(
if(goright){
if(parseInt(inner.style.le
}else{
if(parseInt(inner.style.le
}}}}
window.onload=function(){
ref=(ns4)?document.layers[
outer=(ns4)?document.layer
inner=(ns4)?outer.document
elementwidth=getElWidth(in
if(ns4){
outer.clip.width=boxwidth;
outer.clip.height=boxheigh
outer.moveTo(getPageLeft(r
inner.left=(goright)? -elementwidth : boxwidth-2;
inner.clip.width=0
inner.clip.height=boxheigh
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLe
outer.style.top=getPageTop
inner.style.width=elementw
inner.style.left=((goright
inner.style.visibility="vi
}
setInterval('scrollbox()',
}
</script>
</td></tr></table>
</body>
</html>
<?php
mysql_free_result($rsFeedb
?>
ASKER
Thanks Jason that works! The only thing is I need the text from the database formatted. I've tried inserting the \n command in numerous places and also the nl2br command for php. Where do I put this code so that each testimonial has a line break after it? Also, I want to put the feed_feedback_text in quotations and not the feed_feedback_name section. Where do I put the " tag ?
Cheers,
Derek
Cheers,
Derek
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Jason,
Thanks for That. Got the line breaks working correctly but can't seem to figure out the quotations.
I presume you make a typeo in the above when you said $quote instead of $quot? I've tried lots of different ways but can't seem to get the quotations working.
When I try this:
$content .= $quot;$row_rsFeedback['fee d_feedback _text']." - ".$row_rsFeedback['feed_na me']. "<br>"."<br>";
no information is displayed from the database.
When I try this:
$content .= "$quot;"$row_rsFeedback['f eed_feedba ck_text']. " - ".$row_rsFeedback['feed_na me']. "<br>"."<br>";
the screen returns blank
When I try this:
$content .= "$quot;".$row_rsFeedback[' feed_feedb ack_text'] ." - ".$row_rsFeedback['feed_na me']. "<br>"."<br>";
all I get is a semi-colon at the start of the text.
Any ideas??
Thanks,
Derek
Thanks for That. Got the line breaks working correctly but can't seem to figure out the quotations.
I presume you make a typeo in the above when you said $quote instead of $quot? I've tried lots of different ways but can't seem to get the quotations working.
When I try this:
$content .= $quot;$row_rsFeedback['fee
no information is displayed from the database.
When I try this:
$content .= "$quot;"$row_rsFeedback['f
the screen returns blank
When I try this:
$content .= "$quot;".$row_rsFeedback['
all I get is a semi-colon at the start of the text.
Any ideas??
Thanks,
Derek
Derek,
My bad on a couple of things. Yes, $quote is a typo...too much PHP coding ruins the mind for hand-coding HTML.
I got trapped into your thinking of using HTML entities for quotes.
The problem here is that the HTML entities include a semi-colon, which is also the PHP line terminator. Does it have to be double-quotes? If not, try:
$content .= "'".$row_rsFeedback['feed_ feedback_t ext']."' - ".$row_rsFeedback['feed_na me']."<br> <br>"
That will put a single quote around the text and is the easiest solution.
If you want double quotes, try:
$content .= "\"".$row_rsFeedback['feed _feedback_ text']."\" - ".$row_rsFeedback['feed_na me']."<br> <br>"
The backslash should escape the double quote and print it to the variable. Alternately, this should work:
$content .= "\"\;".$row_rsFeedback ['feed_fee dback_text ']."\" \; - ".$row_rsFeedback['feed_na me']."<br> <br>";
My bad on a couple of things. Yes, $quote is a typo...too much PHP coding ruins the mind for hand-coding HTML.
I got trapped into your thinking of using HTML entities for quotes.
The problem here is that the HTML entities include a semi-colon, which is also the PHP line terminator. Does it have to be double-quotes? If not, try:
$content .= "'".$row_rsFeedback['feed_
That will put a single quote around the text and is the easiest solution.
If you want double quotes, try:
$content .= "\"".$row_rsFeedback['feed
The backslash should escape the double quote and print it to the variable. Alternately, this should work:
$content .= "\"\;".$row_rsFeedback
ASKER
Thanks Jason, got the quotes working on that one. Just one final question and I think I'll be finished with the scroller. I'm trying to put the scroller into a specific part of a page. I created a div tag called "testimonial" and wish to put the scroller inside it. However, when I select the javascript and put it inside the div tag, it displays the scroller twice on the page. Once blank with no information from the database and once properly. I'm not sure how to get it to display correctly. It says in the comments for the scroller to place it in the header but that doesn't seem to work for me either. I've attached the code so you can see whats going on. Thanks a mil! (Also on a sidenote: Is it ok to have the php outside the html tags at the top of the script?)
<?php require_once('../Template/ Connection s/GSM_mobi le.php'); ?>
<?php
mysql_select_db($database_ GSM_mobile , $GSM_mobile);
$query_rsFeedback = "SELECT feed_feedback_text, online, feedback_table.feed_name FROM feedback_table WHERE feedback_table.online = 1";
$rsFeedback = mysql_query($query_rsFeedb ack, $GSM_mobile) or die(mysql_error());
$row_rsFeedback = mysql_fetch_assoc($rsFeedb ack);
$totalRows_rsFeedback = mysql_num_rows($rsFeedback );
do {
$content .= "\"\;".$row_rsFeedback ['feed_fee dback_text ']."\" \;"." - ".$row_rsFeedback['feed_na me']. "<br>"."<br>";
} while ($row_rsFeedback = mysql_fetch_assoc($rsFeedb ack));
?><html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Template</title>
<!-- TemplateEndEditable -->
<style>
td{font-family:verdana;fon t-size:11p x;color:B4 D1E5}
a{color:#DD4411; font-size:10px; text-decoration:underline}
a:visited{color:#DD4411}
a:hover{color:blue}
.m1{padding-left:20; padding-right:20;}
.style1 {
font-size: 14px;
font-family: Georgia, "Times New Roman", Times, serif;
}
#Layer2 { position:absolute;
left:606px;
top:228px;
width:156px;
height:375px;
z-index:3;
visibility: visible;
}
#Layer2 { border: 1px solid #FFFFFF;
}
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif}
#Layer4 { position:absolute;
left:5px;
top:226px;
width:173px;
height:27px;
z-index:5;
}
#Testimonial { position:absolute;
width:169px;
height:188px;
z-index:1;
left: 8px;
top: 261px;
}
#Layer3 { position:absolute;
left:8px;
top:452px;
width:168px;
height:36px;
z-index:4;
}
#Layer1 { position:absolute;
left:0px;
top:504px;
width:182px;
height:241px;
z-index:2;
}
</style>
<script language="JavaScript" 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.o Src;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_pre loadImages .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&&p arent.fram es.length) {
d=parent.frames[n.substrin g(p+1)].do cument; 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.len gth;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.arg uments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+= 3)
if ((x=MM_findObj(a[i]))!=nul l){documen t.MM_sr[j+ +]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
</head>
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" onLoad="MM_preloadImages(' file:///C| /Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q1.gif ','file:// /C|/Docume nts and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q2.gif ','file:// /C|/Docume nts and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q3.gif ','file:// /C|/Docume nts and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q4.gif ','file:// /C|/Docume nts and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q5.gif ','file:// /C|/Docume nts and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q6.gif ')">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td rowspan="10" width="1" height="100%" background="file:///C|/Doc uments and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/bg1222 .jpg" style="background-position :right top; background-repeat:repeat-y "></td>
<td colspan="2"><object classid="clsid:D27CDB6E-AE 6D-11cf-96 B8-4445535 40000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="780" height="200">
<param name="movie" value="../Images/GSMFlash. swf">
<param name="quality" value="high">
<embed src="../Images/GSMFlash.sw f" width="780" height="200" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockw ave-flash" ></embed>< /object></ td>
<td rowspan="10" width="1" height="100%" background="file:///C|/Doc uments and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/bg1223 .jpg" style="background-position :left top; background-repeat:repeat-y "></td>
<td rowspan="10" width="1" background="file:///C|/Doc uments and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/bg1223 .jpg" style="background-position :left top; background-repeat:repeat-y "></td>
</tr>
<tr>
<td colspan="2"><table width="400" border="0" align="center" bgcolor="#FFFFFF">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="100%" valign="top" background="file:///C|/Doc uments and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/back_l eft.gif" width="183"><p> </p>
<p> </p>
<p> </p>
<p> </p>
<div id="Testimonial">
<script language="javascript">
</script>
<br />
</p>
<p>
<a href=""></a>
<script language="javascript">/*** ********** ********** ********** **********
Vertical Scroller (Marquee Replacement) v-1.3
Brian Gosselin - http://scriptasylum.com
Version notes:
V-1.0: Initial release.
V-1.1: Fixed bug in NS6 where page shrinks and grows as
content scrolls. You no longer have to specify
content height, the script does this for you.
V-1.2: Fixed a bug in NS4 where scrolling content would
dictate the bottom boundary of box script.
V-1.3: Added selectable support for pausing the scrolling
when box moused-over.
************************** ********** *******/
//ENTER CONTENT TO SCROLL BELOW.
var content='<?php echo $content; ?>';
var boxheight=188; // BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=169; // BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#448BBF"; // BACKGROUND BOX COLOR.
var speed=50; // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=1; // PIXELS "STEPS" PER REPITITION.
var godown=false; // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE
var pauseOnmouseover=true; //SET TO "true" TO ENABLE PAUSE WHEN MOUSEOVER, "false" TO DISABLE IT.
// DO NOT EDIT BEYOND THIS POINT
var outer,inner,elementheight, ref,refX,r efY;
var w3c=(document.getElementBy Id)?true:f alse;
var ns4=(document.layers)?true :false;
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf( "Netscape" )>=0)?true :false;
var txt='';
var goscroll=true;
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td >';
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width='+boxwidth+' height='+boxheight+'></ila yer>';
txt+='</td></tr></table>'
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width='+boxwidth+' height='+boxheight+' '+((pauseOnmouseover)? 'onmouseover="goscroll=fal se" onmouseout="goscroll=true" ':'')+'>';
txt+='<layer name="inner" width='+(boxwidth-4)+' height='+(boxheight-4)+' visibility="hidden" left="2" top="2" >'+content+'</layer>';
txt+='</layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; background-color:'+boxcolo r+';"></di v>';
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden; background-color:'+boxcolo r+'; overflow:hidden" '+((pauseOnmouseover)? 'onmouseover="goscroll=fal se" onmouseout="goscroll=true" ':'')+'>';
txt+='<div id="inner" style="position:absolute; visibility:hidden; left:2px; top:2px; width:'+(boxwidth-4)+'; overflow:hidden; cursor:default;" '+((pauseOnmouseover)? 'onmouseover="goscroll=fal se" onmouseout="goscroll=true" ':'')+'>'+ content+'< /div>';
txt+='</div>';
}
document.write(txt);
txt='';
function getElHeight(el){
if(ns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top ;
else if(ie4||ie5)return (el.style.height)? el.style.height : el.clientHeight;
else return (el.style.height)? parseInt(el.style.height): parseInt(e l.offsetHe ight);
}
function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4||w3c){
x = 0;
while(el.offsetParent!=nul l){
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}
function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4||w3c){
y=0;
while(el.offsetParent!=nul l){
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}
function scrollbox(){
if(goscroll){
if(ns4){
inner.top+=(godown)? pixelstep: -pixelstep;
if(godown){
if(inner.top>boxheight)inn er.top=-el ementheigh t;
}else{
if(inner.top<2-elementheig ht)inner.t op=boxheig ht+2;
}}else{
inner.style.top=parseInt(i nner.style .top)+((go down)? pixelstep: -pixelstep)+'px';
if(godown){
if(parseInt(inner.style.to p)>boxheig ht)inner.s tyle.top=- elementhei ght+'px';
}else{
if(parseInt(inner.style.to p)<2-eleme ntheight)i nner.style .top=boxhe ight+2+'px ';
}}}}
window.onresize=function() {
if(ns4)setTimeout('history .go(0)', 400);
else{
outer.style.left=getPageLe ft(ref)+'p x';
outer.style.top=getPageTop (ref)+'px' ;
}}
window.onload=function(){
outer=(ns4)?document.layer s['outer'] :(ie4)?doc ument.all[ 'outer']:d ocument.ge tElementBy Id('outer' );
inner=(ns4)?outer.document .layers['i nner']:(ie 4)?documen t.all['inn er']:docum ent.getEle mentById(' inner');
ref=(ns4)?document.layers[ 'ref']:(ie 4)?documen t.all['ref ']:documen t.getEleme ntById('re f');
elementheight=getElHeight( inner);
if(ns4){
outer.moveTo(getPageLeft(r ef),getPag eTop(ref)) ;
outer.clip.width=boxwidth;
outer.clip.height=boxheigh t;
inner.top=(godown)? -elementheight : boxheight-2;
inner.clip.width=boxwidth- 4;
inner.clip.height=elementh eight;
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLe ft(ref)+'p x';
outer.style.top=getPageTop (ref)+'px' ;
inner.style.top=((godown)? -elementheight : boxheight)+'px';
inner.style.clip='rect(0px , '+(boxwidth-4)+'px, '+(elementheight)+'px, 0px)';
outer.style.visibility="vi sible";
inner.style.visibility="vi sible";
}
setInterval('scrollbox()', speed);
}
</script></div>
<p> </p>
<p> </p>
<p> </p>
<div id="Layer3">Tell A Friend </div>
<div id="Layer1"></div>
<p><span class="m1" style="padding-top:10"><br >
</span></p></td>
<td valign="top" background="file:///C|/Doc uments and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/back_r ight.gif" height="100%" width="597">
<table border="0" cellpadding="0" cellspacing="0" width="399">
<tr>
<td colspan="2" valign="top"><p>Please Select a Phone Type: </p>
<p> </p></td>
</tr>
<tr>
<td colspan="2" class="m1">Duis autem vel eum iriure dolor in hendrerit in vulputate velit
esse molestie consequat, vel illum dolore eu feugiat nulla facilisis
at vero eros et accumsan et iusto odio dignissim qui blandit
praesent luptatum zzril delenit augue duis dolore te feugait
nulla facilisi. </td>
</tr>
<tr>
<td colspan="2"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/midl3. gif" border="0" width="417" height="5" alt=""></td>
</tr>
<tr>
<td valign="top" width="208" class="m1" style="padding-top:10">
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Microsoft<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Sun Microsystems<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> IBM Technologies<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Porche Advertisment<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Bla-Bl- Bla company<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Microso ft<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Sun Microsystems<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> IBM Technologies<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Porche Advertisment<br>
<div class="style2" id="Layer4">Testimonials</ div>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Bla-Bl- Bla company<br> </td>
<td width="191" class="m1" style="padding-top:10">
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Microsoft<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Sun Microsystems<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> IBM Technologies<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Porche Advertisment<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Bla-Bl- Bla company<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Microso ft<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Sun Microsystems<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> IBM Technologies<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Porche Advertisment<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Bla-Bl- Bla company<br> </td>
</tr>
<tr>
<td colspan="2"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/midl2. gif" border="0" width="417" height="7" alt=""></td>
</tr>
<tr>
<td colspan="2"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/3.gif" border="0" width="417" height="33" alt=""></td>
</tr>
<tr>
<td colspan="2" class="m1">Duis autem vel eum iriure dolor in hendrerit in vulputate velit
esse molestie consequat, vel illum dolore eu feugiat nulla facilisis
at vero eros et accumsan et iusto odio dignissim qui blandit
praesent luptatum zzril delenit augue duis dolore te feugait
nulla facilisi. </td>
</tr>
<tr>
<td colspan="2"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/midl3. gif" border="0" width="417" height="5" alt=""></td>
</tr>
<tr style="padding-bottom:10">
<td valign="top" width="208" class="m1" style="padding-top:10">
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Microsoft<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Sun Microsystems<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> IBM Technologies<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Porche Advertisment<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Bla-Bl- Bla company<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Microso ft<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Sun Microsystems<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> IBM Technologies<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Porche Advertisment<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Bla-Bl- Bla company<br> </td>
<td width="191" class="m1" style="padding-top:10">
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Microsoft<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Sun Microsystems<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> IBM Technologies<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Porche Advertisment<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Bla-Bl- Bla company<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Microso ft<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Sun Microsystems<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> IBM Technologies<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Porche Advertisment<br>
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/small. gif" border="0" width="11" height="11" alt=""> Bla-Bl- Bla company<br> </td>
</tr>
</table>
<div id="Layer2">
<p>Our Advertisers:</p>
<p> </p>
<p> </p>
</div></td>
</tr>
<tr>
<td colspan="2"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/bottom .jpg" border="0" width="780" height="8" alt=""></td>
</tr>
<tr>
<td colspan="2" background="file:///C|/Doc uments and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/footer .gif" height="41">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding-top:20; padding-left:30; color:ffffff; font-family:tagoma; font-size:10px" valign="top">2006 (c) Copyright Cork GSM. All rights reserved.</td>
<td style="padding-left:60"><a href="#" onMouseOut="MM_swapImgRest ore()" onMouseOver="MM_swapImage( 'Image75', '','file:/ //C|/Docum ents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q1.gif ',1)"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q1.gif " name="Image75" width="51" height="41" border="0"></a><a href="#" onMouseOut="MM_swapImgRest ore()" onMouseOver="MM_swapImage( 'Image76', '','file:/ //C|/Docum ents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q2.gif ',1)"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q2.gif " name="Image76" width="56" height="41" border="0"></a><a href="#" onMouseOut="MM_swapImgRest ore()" onMouseOver="MM_swapImage( 'Image77', '','file:/ //C|/Docum ents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q3.gif ',1)"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q3.gif " name="Image77" width="53" height="41" border="0"></a><a href="#" onMouseOut="MM_swapImgRest ore()" onMouseOver="MM_swapImage( 'Image78', '','file:/ //C|/Docum ents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q4.gif ',1)"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q4.gif " name="Image78" width="54" height="41" border="0"></a><a href="#" onMouseOut="MM_swapImgRest ore()" onMouseOver="MM_swapImage( 'Image79', '','file:/ //C|/Docum ents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q5.gif ',1)"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q5.gif " name="Image79" width="70" height="41" border="0"></a><a href="#" onMouseOut="MM_swapImgRest ore()" onMouseOver="MM_swapImage( 'Image80', '','file:/ //C|/Docum ents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q6.gif ',1)"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu ll Sample Site/2260/with_FL/html/ima ges/q6.gif " name="Image80" width="64" height="41" border="0"></a></td>
</tr>
</table> </td>
</tr>
</table>
</body>
</html>
<?php require_once('../Template/
<?php
mysql_select_db($database_
$query_rsFeedback = "SELECT feed_feedback_text, online, feedback_table.feed_name FROM feedback_table WHERE feedback_table.online = 1";
$rsFeedback = mysql_query($query_rsFeedb
$row_rsFeedback = mysql_fetch_assoc($rsFeedb
$totalRows_rsFeedback = mysql_num_rows($rsFeedback
do {
$content .= "\"\;".$row_rsFeedback
} while ($row_rsFeedback = mysql_fetch_assoc($rsFeedb
?><html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Template</title>
<!-- TemplateEndEditable -->
<style>
td{font-family:verdana;fon
a{color:#DD4411; font-size:10px; text-decoration:underline}
a:visited{color:#DD4411}
a:hover{color:blue}
.m1{padding-left:20; padding-right:20;}
.style1 {
font-size: 14px;
font-family: Georgia, "Times New Roman", Times, serif;
}
#Layer2 { position:absolute;
left:606px;
top:228px;
width:156px;
height:375px;
z-index:3;
visibility: visible;
}
#Layer2 { border: 1px solid #FFFFFF;
}
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif}
#Layer4 { position:absolute;
left:5px;
top:226px;
width:173px;
height:27px;
z-index:5;
}
#Testimonial { position:absolute;
width:169px;
height:188px;
z-index:1;
left: 8px;
top: 261px;
}
#Layer3 { position:absolute;
left:8px;
top:452px;
width:168px;
height:36px;
z-index:4;
}
#Layer1 { position:absolute;
left:0px;
top:504px;
width:182px;
height:241px;
z-index:2;
}
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=
}
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_pre
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&&p
d=parent.frames[n.substrin
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;
for(i=0;!x&&d.layers&&i<d.
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arg
if ((x=MM_findObj(a[i]))!=nul
}
//-->
</script>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
</head>
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" onLoad="MM_preloadImages('
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td rowspan="10" width="1" height="100%" background="file:///C|/Doc
<td colspan="2"><object classid="clsid:D27CDB6E-AE
<param name="movie" value="../Images/GSMFlash.
<param name="quality" value="high">
<embed src="../Images/GSMFlash.sw
<td rowspan="10" width="1" height="100%" background="file:///C|/Doc
<td rowspan="10" width="1" background="file:///C|/Doc
</tr>
<tr>
<td colspan="2"><table width="400" border="0" align="center" bgcolor="#FFFFFF">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="100%" valign="top" background="file:///C|/Doc
<p> </p>
<p> </p>
<p> </p>
<div id="Testimonial">
<script language="javascript">
</script>
<br />
</p>
<p>
<a href=""></a>
<script language="javascript">/***
Vertical Scroller (Marquee Replacement) v-1.3
Brian Gosselin - http://scriptasylum.com
Version notes:
V-1.0: Initial release.
V-1.1: Fixed bug in NS6 where page shrinks and grows as
content scrolls. You no longer have to specify
content height, the script does this for you.
V-1.2: Fixed a bug in NS4 where scrolling content would
dictate the bottom boundary of box script.
V-1.3: Added selectable support for pausing the scrolling
when box moused-over.
**************************
//ENTER CONTENT TO SCROLL BELOW.
var content='<?php echo $content; ?>';
var boxheight=188; // BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=169; // BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#448BBF"; // BACKGROUND BOX COLOR.
var speed=50; // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=1; // PIXELS "STEPS" PER REPITITION.
var godown=false; // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE
var pauseOnmouseover=true; //SET TO "true" TO ENABLE PAUSE WHEN MOUSEOVER, "false" TO DISABLE IT.
// DO NOT EDIT BEYOND THIS POINT
var outer,inner,elementheight,
var w3c=(document.getElementBy
var ns4=(document.layers)?true
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf(
var txt='';
var goscroll=true;
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width='+boxwidth+' height='+boxheight+'></ila
txt+='</td></tr></table>'
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width='+boxwidth+' height='+boxheight+' '+((pauseOnmouseover)? 'onmouseover="goscroll=fal
txt+='<layer name="inner" width='+(boxwidth-4)+' height='+(boxheight-4)+' visibility="hidden" left="2" top="2" >'+content+'</layer>';
txt+='</layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; background-color:'+boxcolo
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden; background-color:'+boxcolo
txt+='<div id="inner" style="position:absolute; visibility:hidden; left:2px; top:2px; width:'+(boxwidth-4)+'; overflow:hidden; cursor:default;" '+((pauseOnmouseover)? 'onmouseover="goscroll=fal
txt+='</div>';
}
document.write(txt);
txt='';
function getElHeight(el){
if(ns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top
else if(ie4||ie5)return (el.style.height)? el.style.height : el.clientHeight;
else return (el.style.height)? parseInt(el.style.height):
}
function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4||w3c){
x = 0;
while(el.offsetParent!=nul
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}
function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4||w3c){
y=0;
while(el.offsetParent!=nul
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}
function scrollbox(){
if(goscroll){
if(ns4){
inner.top+=(godown)? pixelstep: -pixelstep;
if(godown){
if(inner.top>boxheight)inn
}else{
if(inner.top<2-elementheig
}}else{
inner.style.top=parseInt(i
if(godown){
if(parseInt(inner.style.to
}else{
if(parseInt(inner.style.to
}}}}
window.onresize=function()
if(ns4)setTimeout('history
else{
outer.style.left=getPageLe
outer.style.top=getPageTop
}}
window.onload=function(){
outer=(ns4)?document.layer
inner=(ns4)?outer.document
ref=(ns4)?document.layers[
elementheight=getElHeight(
if(ns4){
outer.moveTo(getPageLeft(r
outer.clip.width=boxwidth;
outer.clip.height=boxheigh
inner.top=(godown)? -elementheight : boxheight-2;
inner.clip.width=boxwidth-
inner.clip.height=elementh
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLe
outer.style.top=getPageTop
inner.style.top=((godown)?
inner.style.clip='rect(0px
outer.style.visibility="vi
inner.style.visibility="vi
}
setInterval('scrollbox()',
}
</script></div>
<p> </p>
<p> </p>
<p> </p>
<div id="Layer3">Tell A Friend </div>
<div id="Layer1"></div>
<p><span class="m1" style="padding-top:10"><br
</span></p></td>
<td valign="top" background="file:///C|/Doc
<table border="0" cellpadding="0" cellspacing="0" width="399">
<tr>
<td colspan="2" valign="top"><p>Please Select a Phone Type: </p>
<p> </p></td>
</tr>
<tr>
<td colspan="2" class="m1">Duis autem vel eum iriure dolor in hendrerit in vulputate velit
esse molestie consequat, vel illum dolore eu feugiat nulla facilisis
at vero eros et accumsan et iusto odio dignissim qui blandit
praesent luptatum zzril delenit augue duis dolore te feugait
nulla facilisi. </td>
</tr>
<tr>
<td colspan="2"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
</tr>
<tr>
<td valign="top" width="208" class="m1" style="padding-top:10">
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<div class="style2" id="Layer4">Testimonials</
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<td width="191" class="m1" style="padding-top:10">
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
</tr>
<tr>
<td colspan="2"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
</tr>
<tr>
<td colspan="2"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
</tr>
<tr>
<td colspan="2" class="m1">Duis autem vel eum iriure dolor in hendrerit in vulputate velit
esse molestie consequat, vel illum dolore eu feugiat nulla facilisis
at vero eros et accumsan et iusto odio dignissim qui blandit
praesent luptatum zzril delenit augue duis dolore te feugait
nulla facilisi. </td>
</tr>
<tr>
<td colspan="2"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
</tr>
<tr style="padding-bottom:10">
<td valign="top" width="208" class="m1" style="padding-top:10">
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<td width="191" class="m1" style="padding-top:10">
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
<img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
</tr>
</table>
<div id="Layer2">
<p>Our Advertisers:</p>
<p> </p>
<p> </p>
</div></td>
</tr>
<tr>
<td colspan="2"><img src="file:///C|/Documents and Settings/Maire Moynahan/My Documents/FreedomMobile/Fu
</tr>
<tr>
<td colspan="2" background="file:///C|/Doc
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding-top:20; padding-left:30; color:ffffff; font-family:tagoma; font-size:10px" valign="top">2006 (c) Copyright Cork GSM. All rights reserved.</td>
<td style="padding-left:60"><a
</tr>
</table> </td>
</tr>
</table>
</body>
</html>
>> I'm not sure how to get it to display correctly.
Don't add the javascript to header despite that guy's instructions :)
If you look at his sample page, he doesn't do that. Just place the javascript inside the div.
>> Is it ok to have the php outside the html tags at the top of the script?
Yes, that is the preferred way to do it.
Don't add the javascript to header despite that guy's instructions :)
If you look at his sample page, he doesn't do that. Just place the javascript inside the div.
>> Is it ok to have the php outside the html tags at the top of the script?
Yes, that is the preferred way to do it.
ASKER
Thanks Jason, can't seem to figure out how to fix the repeating scroller problem. Think I'll post it as a separate question. Thanks again for all your help on it. Much Appreciated, Derek
Where will the marquee be pulling the values from? All you should need to do is create a seperate page with your recordset and a repeat region so all approved records display on that page. Then have the marquee call that page using a php include.
Something like:
<MARQUEE>
<?php include('yourcommentsfile.
</MARQUEE>
Not sure where you would place it admist all that javascript, but that's the general idea.
On a related note, you do know that marquee is deprecated and has varied support among all the browsers, right?