13rad
King
- Sep 15, 2013
- 156
- 36
I've been editing a cms decided to add the new News slider but I'm having an issue the Promo Bullets don't seem to show up nor does the slideshow work it does load up all the news articles but yet again Promo Bullets don't show up nor does it move.
Image:
Slider Code:
Thanks for any suggestions!
Image:
Slider Code:
Code:
<div id="promo-box">
<div id="promo-bullets"></div>
<?php
$to5 = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC LIMIT 5") or die(mysql_error());
?>
<?php $i = 0; while($newsobject = mysql_fetch_assoc($to5)){ $i++; ?>
<div class="promo-container" style="background-image: url(%www%/Top_Story_Images/<?php echo $newsobject['image']; ?>)<?php if($i != '1'){ ?>; display: none<?php } ?>">
<div class="promo-content-container">
<div class="promo-content">
<div class="title"><?php echo $newsobject['title']; ?></div>
<div class="body"><?php echo $newsobject['shortstory']; ?></div>
</div>
</div>
<div class="promo-link-container">
<div class="enter-hotel-btn">
<div class="open enter-btn">
<a href="%www%/index.php?p=news&id=<?php echo $newsobject['id']; ?>">Read the full article »</a>
<b></b>
</div>
</div>
<div style="color:#FFF;margin-top:25px;margin-left:-210px;">Posted on: <b><?php echo date('F d, Y', $newsobject['published']); ?></b></div>
</div>
</div>
<?php }?>
</div>
<script type="text/javascript">
document.observe("dom:loaded", function()
{
PromoSlideShow.init();
});
</script>
Thanks for any suggestions!