Hi guys,
Thanks for the replies.
Unfortunately I am still struggling to get this done!!
Here is a copy of the header.php:
Code:
<div id="wrapper_header">
<div class="logo_s"><a href="<?=_BASEURL_?>/" title="<?=_TITLE_?>"><img src="<?=_BASEURLMEDIA_?>/logo.png" alt="My website" /></a><div class="beta"></div></div>
<div id="log_pane">
<? if($_SESSION['uid'] ==''){ ?>
<div class="corner_l"><div class="corner_c">
<form method="post" action="<?=_BASEURL_?>/login.php" name="frm11">
<div><input type="text" name="email" value="<?=_EML_ID11_?>" class="inputtext" onclick="_delete_login_fields(this, '<?=_EML_ID11_?>', this.value);"/></div>
<div><input type="password" name="password" value="<?=_PWS_11111_?>" class="inputtext" onclick="_delete_login_fields(this, '<?=_PWS_11111_?>', this.value);" /></div>
<div><input type="submit" name="submit" value=" " class="submit" /></div>
</form>
<div class="reg">
<a href="<?=_BASEURL_?>/register/index.html">Register</a> | <a href="<?=_BASEURL_?>/forgot-your-password/index.html">Forgot Your Password</a></div></div></div>
<? }else{?>
<div class="corner_l"><div class="corner_c">
<div class="sfl tm15px lm30px">Welcome</div>
<div class="normaltextblackbold11 lm5px sfl"> <?=get_uname($_SESSION['uid'])?></div>
<?
$uname=mysql_fetch_array(mysql_query("select id,uname,image,no_bids from user where id=".$_SESSION['uid']));
?>
<div class="tm10px "> Available My website Credits:</div>
<div id="user_current_bids" class="normaltextblackbold11 lm5px sfl"> <?=$uname['no_bids'];?> </div>
<script language="javascript">
function find_no_bids(strURL)
{
var xmlHttpReq_num = false;
var self_num = this;
// Mozilla/Safari
if (window.XMLHttpRequest) {
self_num.xmlHttpReq_num = new XMLHttpRequest();
}
// IE
else if (window.ActiveXObject) {
self_num.xmlHttpReq_num = new ActiveXObject("Microsoft.XMLHTTP");
}
self_num.xmlHttpReq_num.open('POST', strURL, true);
self_num.xmlHttpReq_num.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
self_num.xmlHttpReq_num.onreadystatechange = function() {
if (self_num.xmlHttpReq_num.readyState == 4)
{
document.getElementById("user_current_bids").innerHTML=self_num.xmlHttpReq_num.responseText;
}
}
self_num.xmlHttpReq_num.send('');
setTimeout("find_no_bids('ajax_num_bids.php')",2000);
}
setTimeout("find_no_bids('ajax_num_bids.php')",2000);
</script>
<a class="header2right smalla1bww " href="<?=_BASEURL_?>/logout/index.html"><?=_LOGOUT11_?></a></div></div>
<? }?>
<div class="corner_r"></div>
<div class="shadow"></div>
<div id="log_secrh"><div class="log_secrh"><form name="headerSearchForm" id="headerSearchForm" action="<?=_BASEURL_?>/search.php" onSubmit="return searchproduct();" method="get"><input type="text" id="keyword" name="keyword" value="Search..." class="inputtext" onclick="_delete_login_fields(this, 'Search...', this.value);" /></form></div></div>
</div>
<div class="tab_show_effect_sh">
<div class="tab_show_effect">
<div id="toptab_ef">
<ul class="show_tab">
<li class="home"><a href="<?=_BASEURL_?>/"> </a></li>
<? if($_SESSION['uid']!=''){?>
<li class="acc"><a href="<?=_BASEURL_?>/myauctions/index.html"> </a></li>
<? }
else{?>
<li class="acc"><a href="<?=_BASEURL_?>/login/index.html"> </a></li>
<? }?>
<li class="cat"><a href="<?=_BASEURL_?>/allcategories/index.html"> </a></li>
<li class="auc"><a href="<?=_BASEURL_?>/seeallauctions/index.html"> </a></li>
<li class="how"><a href="<?=_BASEURL_?>/howitworks/index.html"> </a></li>
<li class="news"><a href="<?=_BASEURL_?>/newsdetail/index.html"> </a></li>
<li class="green"><a href="<?=_BASEURL_?>/faq_buyers.php"> </a></li>
<li class="contact"><a href="<?=_BASEURL_?>/contact/index.html"> </a></li>
</ul>
</div>
</div>
</div>
<DIV STYLE="position:absolute; marging-top:1px; margin-left:720px; width:239px; height:199px; font-family:Arial; font-size:10pt;"><img src="img/sign.png" width="250" height="199" border="0" usemap="#Map" style="float:right"/>
<map name="Map" id="Map"><area shape="rect" coords="74,116,176,170" href="http://www.my website.com/register/index.html" target="_self" />
</map></DIV>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="fadeslideshow.js">
/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [707, 199], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://www.My website.com/img/1.png", "", "", "My website.com offers a wide range of products. Save up to 98% of RRP prices."],
["http://www.My website.com/img/2.png", "Combined shopping & Gaming.", "_new", "Gear Deals, Small Prices... That is what we do..."],
["http://www.My website.com/img/3.png"],
["http://www.My website.com/img/4.png", "", "", "My website.com offers a wide range of products."] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:16000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
<div id="fadeshow1"></div>
<br />
</div>
Could you please let me know what I have to do to achieve what I am trying to do?
Cheers.
Bookmarks