function showbox(url,w,h){
var overlay = $('overlay');
var infobox = $('infobox');
var frame = $('boxframe');
var body = overlay.parentNode;
var ww = body.offsetWidth;
var wh = body.offsetHeight;
var bl = Math.round((ww-w)/2);
var fh = h-26;
frame.src=url;
frame.style.width=w+'px';
frame.style.height=fh+'px';
infobox.style.width=w+'px';
infobox.style.height=h+'px';
infobox.style.left=bl+'px';
overlay.style.width=ww+'px';
overlay.style.height=wh+'px';
overlay.style.display='block';
infobox.style.display='block';
return false;
}
Question
anonīms
Problēma ir tur, ka uzspiežot uz linka vajadzētu būt overlay effektam, bet tāds nav. Kur varētu būt problēma?
html
js
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.