Last change
on this file since 16145 was
15076,
checked in by gbo, 13 years ago
|
2.4.B Compliance with Theme Stripped and plugin Piwishak
|
File size:
890 bytes
|
Line | |
---|
1 | // LLGBO frame resize |
---|
2 | jQuery(document).ready(function(jQuery){ |
---|
3 | jQuery("#theMainImage").load(function(){LlgboFr_Resize();}); |
---|
4 | jQuery(window).resize(function(){ LlgboFr_Resize(); }); |
---|
5 | }); |
---|
6 | var LlgboFr_Resize = function () { |
---|
7 | var MainImg = jQuery("img#theMainImage").get(0); |
---|
8 | var nFrH = parseInt(MainImg.height); |
---|
9 | var nFrW = parseInt(MainImg.width); |
---|
10 | var FrLstBdr = 0, i = 0; |
---|
11 | var elGbo = jQuery("div#llgbo"); |
---|
12 | if (elGbo.get(0)) { |
---|
13 | for ( i=1; i<32; i=i+2 ) |
---|
14 | {var Fr = jQuery("div#llgboframe"+(i)); |
---|
15 | var frbdr = 0; |
---|
16 | if (Fr.get(0)) { |
---|
17 | frbdr = parseInt(Fr.css('border-left-width')); |
---|
18 | nFrH = nFrH + FrLstBdr ; |
---|
19 | nFrW = nFrW + FrLstBdr ; |
---|
20 | Fr.css("height", (nFrH) + "px"); |
---|
21 | Fr.css("width", (nFrW) + "px");} |
---|
22 | FrLstBdr = (frbdr * 2); |
---|
23 | } |
---|
24 | elGbo.css("width", (nFrW + FrLstBdr) + "px"); |
---|
25 | elGbo.css("height", (nFrH + FrLstBdr) + "px"); |
---|
26 | } |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.