You're welcome. OK, I'll try to make this as easy as possible for you. First make a backup of your page. I don't have the proper encoding here to make an accurate copy of your text, so the below will be just an approximation of that part. On your page at http://www.medaperadiga.com/ replace:
Code:
<script>
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>
<layer id="divStayTopLeft">
<!--EDIT BELOW CODE TO YOUR OWN MENU-->
<table border="1" width="130" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" bgcolor="#000000">
<p align="center" class="style47"><b><font size="5">නිවේදනයක්</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#000000"><div align="center"><span class="style54">99 194 101</span> <span class="style55">නමැති දුරකථන අංකය අප වෙබ් අඩවියට අයත් නොවන අතර, එම අංකය සතු පුද්ගලයා සමග අප වෙබ් අඩවිය කිසිම සම්බන්ධ තාවයක් නොමැති බව කරුණාවෙන් සලකන්න !!</span></div>
</tr>
</table>
<!--END OF EDIT-->
</layer>
<script type="text/javascript">
/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"
var fstandardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX = 3,
startY = 250;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+'px';this.style.top=y+'px';};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? window.pageYOffset + window.innerHeight : fstandardbody.scrollTop + fstandardbody.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? window.pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? window.pageYOffset + window.innerHeight : fstandardbody.scrollTop + fstandardbody.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
with:
Code:
<div id="divStayTopLeft" style="position:absolute;z-index:10;">
<!--EDIT BELOW CODE TO YOUR OWN MENU-->
<table border="1" width="130" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" bgcolor="#000000">
<p align="center" class="style47"><b><font size="5">?????????</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#000000"><div align="center"><span class="style54">99 194 101</span> <span class="style55">????? ?????? ???? ?? ???? ?????? ???? ???? ???, ?? ???? ??? ???????? ??? ?? ???? ????? ????? ??????? ?????? ?????? ?? ????????? ?????? !!</span></div>
</tr>
</table>
<!--END OF EDIT-->
</div>
<div id="divStayTopRight" style="position:absolute;z-index:10;width:150px;height:150px;background:#fff;">
<!--EDIT BELOW CODE TO YOUR OWN MENU-->
<script type="text/javascript">
/***********************************************
* IFRAME Scroller script- © 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 full source code
***********************************************/
//specify path to your external page:
var iframesrc="http://www.dynamicdrive.com/dynamicindex2/external.htm"
//You may change most attributes of iframe tag below, such as width and height:
document.write('<iframe id="datamain" src="'+iframesrc+'" width="150px" height="150px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="1" scrolling="no"></iframe>')
</script>
<!--END OF EDIT-->
</div>
<script type="text/javascript">
/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
Original Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for legal use
Modifications here for multi-use and multi-side
as first seen in http://www.dynamicdrive.com/forums/
username: jscheuer1
*/
function JSFX_FloatTopDiv(id, vPos, sX, sY){
if(!document.getElementById){return;}
this.el = document.getElementById(id);
this.verticalpos = vPos;
this.startX = !this.ie6? Math.abs(sX) : sX < 0? this.width(false) + sX - this.el.offsetWidth : sX;;
this.startY = sY;
this.fromH = sX < 0 && !this.ie6? 'right' : 'left';
this.ml();
var cObj = this;
setInterval(function(){cObj.stayTopLeft();}, 10);
}
if(document.getElementById){
JSFX_FloatTopDiv.prototype = {
ml: function(){
this.x = this.startX;
if(this.verticalpos === 'fromtop'){
this.y = this.startY;
}
else{
this.y = this.height(false);
this.y -= this.startY;
}
},
stayTopLeft: function(){
var el = this.el.style, wAdj = this.fromH === 'right'? -1 : 1;
if(this.verticalpos === 'fromtop'){
this.y += (this.height(true) + this.startY - this.y)/8;
}
else{
this.y += (this.height(false) - this.startY - this.y)/8;
}
this.x += (this.width(true) * wAdj + this.startX - this.x)/8;
el[this.fromH] = this.x + 'px'; el.top = this.y + 'px';
},
trueBody: (function(){
return document.compatMode && document.compatMode !== 'BackCompat'?
function(){return document.documentElement;} :
function(){return document.body;}
})(),
height: (function(){
return window.innerHeight?
function(s){return s? pageYOffset : pageYOffset + innerHeight;} :
function(s){var tb = this.trueBody(); return s? tb.scrollTop : tb.scrollTop + tb.clientHeight;}
})(),
ie6: (function(){
return !window.innerWidth && /MSIE (\d)/.test(navigator.appVersion) && RegExp.$1 < 7;
})(),
width: (function(){
return window.innerWidth?
function(){return pageXOffset;} : /MSIE (\d)/.test(navigator.appVersion) && RegExp.$1 < 7?
function(s){var tb = this.trueBody(); return s? tb.scrollLeft : tb.scrollLeft + tb.clientWidth;} :
function(){return this.trueBody().scrollLeft;}
})()
};
}
new JSFX_FloatTopDiv('divStayTopLeft', 'fromtop', 3, 150);
new JSFX_FloatTopDiv('divStayTopRight', 'fromtop', -3, 180);
</script>
Any questions, feel free to ask.
Bookmarks