<!-- Required header files -->
<link href="css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="js/vpb_news_scroller_loader.js"></script>
<!-- Scroller Code Begins -->
<div id="vpb_auto_display_news_scroller"></div>
<!-- Scroller Code Ends -->
<?php
include "config.php"; //Include the database connection file
//Check for all tutorials in the database
$check_tutorials = mysql_query("select * from `auto_new_scroller_demo` order by `id` desc");
if(mysql_num_rows($check_tutorials) < 1)
{
echo '<div class="info">There is no item in the database table to display at the moment.</div>';
}
else {
?>
<div id="vpb_news_scroller_wrapper">
<div class="vpb_news_scroller_header">Tutorial Topics</div>
<div class="vpb_news_scroller">
<ul>
<?php
while($get_tutorials = mysql_fetch_array($check_tutorials))
{
?>
<li>
<a href="http://www.vasplus.info/tutorial.php?id=<?php echo strip_tags($get_tutorials["id"]); ?>&topic=<?php echo strip_tags($get_tutorials["topic"]); ?>" target="_blank">
<?php echo strip_tags($get_tutorials["topic"]); ?>
</a>
</li>
<?php
}
?>
</ul>
</div>
</div>
<?php
}
?>
<script type="text/javascript" src="js/vpb_news_scroller.js"></script>
/* We have used window.load function to be sure that all required contents are loaded before the scroller begins to scroll the items */
$(window).load(function()
{
$(document).ready(function()
{
vpb_auto_display_news_scroller();
});
});
//This function loads the news scroller
function vpb_auto_display_news_scroller()
{
$.ajax({
type: "POST",
url: "vpb_auto_display_news_scroller.php",
data: '',
cache: false,
beforeSend: function()
{
$("#vpb_auto_display_news_scroller").html('<div style="height:150px;padding-top:120px;min-width:200px;width:auto;margin: 0 auto;font-family:Verdana, Geneva, sans-serif;font-size:12px;" align="center">Loading <img src="images/loadings.gif" align="absmiddle" alt="Loading..." /></div>');
},
success: function(response)
{
$('#vpb_auto_display_news_scroller').fadeIn(400).html(response);
}
});
}
Our objective is to reach a place where our services will be highly regarded by businesses from various industrial domains for building their innovative busines solutions with our cutting-edge technological expertise, interactive designs and uncompromised quality.
We aspire to help businesses ranging from startups to enterprises, who reach out to us with their requirements, in achieving great lengths, expanding their reach, upscaling their products, and generate a large user-base with our outstanding and cost-effective services.
Copyright © 2011 - 2024 | All Rights Reserved