Width Widget
4 posters
Page 1 of 1
Re: Width Widget
- Code:
jQuery(document).ready(function(){
jQuery("#posaljiwidth").click(function(){
var a=eval(document.getElementById("selektwidth").value);
var b=0;
jQuery("table.bodylinewidth").animate({width:a},800, "linear");
if(a==1050){b=1;}
if(a==1100){b=2;}
if(a==1200){b=3;}
if(a==1300){b=4;}
setKuki('bodylinewidthkuki',b,365);
});
});
</script>
<center><div style="text-align: center; font-size:10px;">Width: <input type=submit id="posaljiwidth" value="Set">
<select id="selektwidth">
<option selected>980</option>
<option>1050</option>
<option>1100</option>
<option>1200</option>
<option>1300</option>
</select>
Create new javascript and add this code
Re: Width Widget
Yes It Did But There Is Nothing Like As I asked For?
I Add This Code In Widget But Not Working
I Add This Code In Widget But Not Working
Re: Width Widget
- Code:
<script>jQuery(document).ready(function(){
jQuery("#posaljiwidth").click(function(){
var a=eval(document.getElementById("selektwidth").value);
var b=0;
jQuery("table.bodylinewidth").animate({width:a},800, "linear");
if(a==1050){b=1;}
if(a==1100){b=2;}
if(a==1200){b=3;}
if(a==1300){b=4;}
setKuki('bodylinewidthkuki',b,365);
});
});
</script>
<center><div style="text-align: center; font-size:10px;">Width: <input type=submit id="posaljiwidth" value="Set">
<select id="selektwidth">
<option selected>980</option>
<option>1050</option>
<option>1100</option>
<option>1200</option>
<option>1300</option>
</select>
Try now , I missed something
Re: Width Widget
Add these JavaScripts to a new Widget (Admin Panel -> Modules -> Portal & Widgets -> Forum Widget managements).
- Code:
<script type="text/javascript">
function setKuki(c_name,value,exdays){var exdate=new Date();exdate.setDate(exdate.getDate()+exdays);var c_value=escape(value)+((exdays==null)?'':'; expires='+exdate.toUTCString());document.cookie=c_name+'='+c_value}
function getKuki(c_name){var i,x,y,ARRcookies=document.cookie.split(';');for(i=0;i<ARRcookies.length;i++){x=ARRcookies[i].substr(0,ARRcookies[i].indexOf('='));y=ARRcookies[i].substr(ARRcookies[i].indexOf('=')+1);x=x.replace(/^\s+|\s+$/g,'');if(x==c_name){return unescape(y)}}}
jQuery(document).ready(function(){
jQuery("#posaljiwidth").click(function(){
var a=eval(document.getElementById("selektwidth").value);
var b=0;
jQuery("table.bodylinewidth").animate({width:a},800, "linear");
if(a==1050){b=1;}
if(a==1100){b=2;}
if(a==1200){b=3;}
if(a==1300){b=4;}
setKuki('bodylinewidthkuki',b,365);
});
});
</script>
<center><div style="text-align: center;"><input type=submit id="posaljiwidth" value="Set">
<select id="selektwidth">
<option selected>980</option>
<option>1050</option>
<option>1100</option>
<option>1200</option>
<option>1300</option>
</select>
</div></center>
Re: Width Widget
The Width Is Not Taking any action, It Might Be Because Of The Widget, It already have or Something?
Re: Width Widget
Yes, I am using the Script What You have posted But It's Not Working You Can Have a Look at My Forum http://saudatricks.forummotion.com
Re: Width Widget
Hello,
Try this:
Thanks
Try this:
- Code:
<canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>Text here</cufontext><cufon class="cufon cufon-canvas" alt="Forum " style="width: 38px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>Text here</cufontext></cufon><cufon class="cufon cufon-canvas" alt="Options" style="width: 40px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>2nd text here</cufontext></cufon><span class="genmed module-title"><cufon class="cufon cufon-canvas" alt="Forum " style="width: 38px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>Forum </cufontext></cufon><cufon class="cufon cufon-canvas" alt="Options" style="width: 40px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>Options</cufontext></cufon></span><td class="catLeft" height="25"><span class="genmed module-title"><cufon class="cufon cufon-canvas" alt="Forum " style="width: 38px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>Forum </cufontext></cufon><cufon class="cufon cufon-canvas" alt="Options" style="width: 40px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>2nd text here</cufontext></cufon></span></td><tr><td class="catLeft" height="25"><span class="genmed module-title"><cufon class="cufon cufon-canvas" alt="Forum " style="width: 38px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>Forum </cufontext></cufon><cufon class="cufon cufon-canvas" alt="Options" style="width: 40px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>2nd text here</cufontext></cufon></span></td></tr><tr><td class="row1" align="left"><script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#posaljiwidth").click(function(){
var a=eval(document.getElementById("selektwidth").value);
var b=0;
jQuery("table.bodylinewidth").animate({width:a},800, "linear");
if(a==1050){b=1;}
if(a==1100){b=2;}
if(a==1200){b=3;}
if(a==1300){b=4;}
setKuki('bodylinewidthkuki',b,365);
});
});
</script>
<center><div style="text-align: center; font-size:10px;">Width: <input type="submit" id="posaljiwidth" value="Set">
<select id="selektwidth">
<option selected="">980</option>
<option>1050</option>
<option>1100</option>
<option>1200</option>
<option>1300</option>
</select>
</div></center></td></tr><tbody><tr><td class="catLeft" height="25"><span class="genmed module-title"><cufon class="cufon cufon-canvas" alt="Forum " style="width: 38px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>Forum </cufontext></cufon><cufon class="cufon cufon-canvas" alt="Options" style="width: 40px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>Options</cufontext></cufon></span></td></tr><tr><td class="row1" align="left"><script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#posaljiwidth").click(function(){
var a=eval(document.getElementById("selektwidth").value);
var b=0;
jQuery("table.bodylinewidth").animate({width:a},800, "linear");
if(a==1050){b=1;}
if(a==1100){b=2;}
if(a==1200){b=3;}
if(a==1300){b=4;}
setKuki('bodylinewidthkuki',b,365);
});
});
</script>
<center><div style="text-align: center; font-size:10px;">Width: <input type="submit" id="posaljiwidth" value="Set">
<select id="selektwidth">
<option selected="">980</option>
<option>1050</option>
<option>1100</option>
<option>1200</option>
<option>1300</option>
</select>
</div></center></td></tr></tbody><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0"><tbody><tr><td class="catLeft" height="25"><span class="genmed module-title"><cufon class="cufon cufon-canvas" alt="Forum " style="width: 38px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>Forum </cufontext></cufon><cufon class="cufon cufon-canvas" alt="Options" style="width: 40px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>Options</cufontext></cufon></span></td></tr><tr><td class="row1" align="left"><script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#posaljiwidth").click(function(){
var a=eval(document.getElementById("selektwidth").value);
var b=0;
jQuery("table.bodylinewidth").animate({width:a},800, "linear");
if(a==1050){b=1;}
if(a==1100){b=2;}
if(a==1200){b=3;}
if(a==1300){b=4;}
setKuki('bodylinewidthkuki',b,365);
});
});
</script>
<center><div style="text-align: center; font-size:10px;">Width: <input type="submit" id="posaljiwidth" value="Set">
<select id="selektwidth">
<option selected="">980</option>
<option>1050</option>
<option>1100</option>
<option>1200</option>
<option>1300</option>
</select>
</div></center></td></tr></tbody></table><div style="height: 4px"></div>
Thanks
mangaka- Forumember
- Posts : 121
Reputation : 5
Language : Indonesia
Location : Well
Re: Width Widget
Did you add the code in a new JavaScript page or as new Widget?
Also, try removing all scripts you've gotten here and theb replace it with the script I gave you.
Also, try removing all scripts you've gotten here and theb replace it with the script I gave you.
Re: Width Widget
Arsalan3d wrote:Mangaka Your Script Is Pretty Much Messed, And It's Not Working Too :'(
Hhmm..My script was messed?Alright,alright.Here is the code:
- Code:
<div style="height: 4px"></div>
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0"><tbody><tr><td class="catLeft" height="25"><span class="genmed module-title"><cufon class="cufon cufon-canvas" alt="Forum " style="width: 38px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>Forum </cufontext></cufon><cufon class="cufon cufon-canvas" alt="Options" style="width: 40px; height: 15px;"><canvas width="46" height="17" style="width: 46px; height: 17px; top: 0px; left: 0px;"></canvas><cufontext>Options</cufontext></cufon></span></td></tr><tr><td class="row1" align="left"><script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#posaljiwidth").click(function(){
var a=eval(document.getElementById("selektwidth").value);
var b=0;
jQuery("table.bodylinewidth").animate({width:a},800, "linear");
if(a==1050){b=1;}
if(a==1100){b=2;}
if(a==1200){b=3;}
if(a==1300){b=4;}
setKuki('bodylinewidthkuki',b,365);
});
});
</script>
<center><div style="text-align: center; font-size:10px;">Width: <input type="submit" id="posaljiwidth" value="Set">
<select id="selektwidth">
<option selected="">980</option>
<option>1050</option>
<option>1100</option>
<option>1200</option>
<option>1300</option>
</select>
</div></center></td></tr></tbody></table>
This is a HTML code
mangaka- Forumember
- Posts : 121
Reputation : 5
Language : Indonesia
Location : Well
Re: Width Widget
@mangaka Appreciate it that you copy the source code from duelingcity, but the code won't work without the setKuki and the getKuki functions I provided. Well, at least not permanently.
Similar topics
» How to change width of widget
» News widget width (help)
» forum width widget
» portal widget width
» How to add Forum Width Widget?
» News widget width (help)
» forum width widget
» portal widget width
» How to add Forum Width Widget?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum