Click here to Skip to main content
15,917,731 members

Comments by Member 10685464 (Top 29 by date)

Member 10685464 25-Jun-14 2:38am View    
i deleted old one. And this is a improved.But this is forum right and you got the answer at least hint that what should i do if u say like that then how we can post the questions from next time
Member 10685464 25-Jun-14 2:32am View    
No actually, at that it didn't come & i urgently required so i post the question.And I just want it urgent
Member 10685464 25-Jun-14 2:14am View    
actually in that post I am unable to post the question so I post another.
Member 10685464 25-Jun-14 2:09am View    
Deleted
ohk and i have no deep knowledge about js. This is already written code. Actually i did't understand what i have to post so someone is asking for code so i post the code. Any way

if (mode === 'help') {
var ifr = document.createElement('iframe');
ifr.className = 'helpinfocontrol';
ifr.frameBorder = 0;
ifr.id = 'IFR_' + rnd;
document.body.appendChild(ifr);
ifr.anim = new LoadingAnimation("Dv_" + rnd);
if (document.attachEvent) { //IE
var that = ifr;
ifr.attachEvent('onload', function () { that.anim.Stop(); });
} else if (document.addEventListener) { //Firefox
var that = ifr;
ifr.addEventListener('load', function () { that.anim.Stop(); }, false);
} else {
ifr.onload = function () {
this.anim.Stop();
}
}
$(ifr).css({ width: wdt - 37, height: hgt - 37, left: lft + 20, top: tp + 15, 'position': 'absolute', 'z-index': 299998 });
ifr.src = url;
ifr.anim.Start();
}
function displayCanvas() {
$(canvas).css({ width: wdt, height: hgt, left: lft });
canvas.width = wdt;
canvas.height = hgt;
var ctx = canvas.getContext("2d");
ctx.clearRect(0, 0, wdt, hgt);
ctx.save();
roundRect(ctx, 11, 10, wdt - 22, hgt - 22, 10, true, true);
ctx.strokeStyle = '#878787';
ctx.beginPath();
ctx.lineWidth = 2;
ctx.moveTo(originx2, 25);
ctx.lineTo(originx1, 30);
ctx.lineTo(originx2, 35);
ctx.fill();
ctx.closePath();
ctx.stroke();
ctx.beginPath();
ctx.lineWidth = 2;
ctx.strokeStyle = '#ffffff';
ctx.moveTo(originx2, 26);
ctx.lineTo(originx2, 34);
ctx.closePath();
ctx.stroke();
ctx.save();
}
this is my code
Member 10685464 25-Jun-14 1:27am View    
Deleted
function ShowFrames(no) {
if (current_tab == -1) {
current_tab = undefined;
}
current_tab = ((current_tab==undefined)?no:current_tab);
for (var i = 1; i <= crtabs; i++) {
var ifr = document.getElementById('IFR_' + i);
if (ifr) {
if (document.getElementById('LI_' + i)) {
document.getElementById('LI_' + i).className = ((i == no) ? 'current' : '');
}
ifr.style.display = ((i == no) ? '' : 'none');
if (document.getElementById('Dv_' + i)) {
document.getElementById('Dv_' + i).style.display = ((i == no && ifr.anim.stopped == false) ? 'block' : 'none');
}
}
}
if (document.getElementById('Container' + no)) {
document.getElementById('Container' + no).innerHTML = '';
setGradient(src_col_highlight, trg_col_highlight, 0, 'V', 29, 'Container' + no, 0, '000000', 29);
}
if(current_tab!=no){
if(document.getElementById('Container'+current_tab)){
document.getElementById('Container'+current_tab).innerHTML='';
setGradient(src_col_normal,trg_col_normal,0,'V',29,'Container'+current_tab,0,'000000',29);
current_tab = no;
}}
}
This is another js function which is called on page tab out