I want this code
+2
Sanket
Syria Web
6 posters
Page 1 of 1
Re: I want this code
May I remind you that double/triple posting isn't tolerated unless separated by 24 hours (Use the edit button)
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: I want this code
I can't find the exact code, but hope this helps you. http://davidwalsh.name/change-text-size-onclick-with-javascript
Guest- Guest
Re: I want this code
You will not find that copyrighted code anywhere except on the forum where you copied that image. I would like to say more about that code, but new rules here prohibit me from doing so.
FYI, the script on the David Walsh site will work on forumotion phpBB3 boards.
FYI, the script on the David Walsh site will work on forumotion phpBB3 boards.
Guest- Guest
Re: I want this code
Dion, if you want to provide help please do so else please refrain from posting information which is an additional advertisement to a different site.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: I want this code
Syria Web wrote:helo
I want this code
https://i.servimg.com/u/f41/16/61/91/38/code13.png
my forum phpBB3
search in the website you have taken snapshot from, may the author be generous enough to share this
Re: I want this code
ioncube, you are already warned for advertising. Here you are again trying to advertise a forum in a indirect way even after reading my previous post.
If you intend to help a user do it, or else just refrain from posting as is mentioned in the rules.
If you intend to help a user do it, or else just refrain from posting as is mentioned in the rules.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: I want this code
To MrMario: you wondered why I said what I did to you in private. THIS is why.Sanket wrote:Dion, if you want to provide help please do so else please refrain from posting information which is an additional advertisement to a different site.
To the person who started this topic: you ripped that button image from my board, and are asking for code from my board. The code is not available to you, and please do not ask again. Thank you.
Guest- Guest
Re: I want this code
Fair enough, if you don't wish to share the code ! Next time just ignore the topic, that would be good. Also, if someone is trying to provide your copyright codes to any user, PM any of the staff member & we will be happy to remove it from here.
If you have any replies to this, we can talk via PM's. Thank you.
If you have any replies to this, we can talk via PM's. Thank you.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: I want this code
Then my warning is illegitimate; I can produce evidence that I want given any reminder BEFORE warning...& I was registered for a day or two here then..
Re: I want this code
Firstly, i did not issue you a warning. Its a reminder. Your warning in place is for advertising done previously. If you have any queries, please PM me.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: I want this code
Wait we are not even allowed to mention another site even it is to help a person solve a problem?
blindbat1457- Forumember
- Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA
Re: I want this code
Add this to CSS:
Put this HTML where you want
Edit just this part:
Now go to: Javascript codes management
I hope i help you.
- ACP > Display > Colors > CSS Stylesheet:
- Code:
.controlstyle a{
outline:none;
}
.controlstyle a img{
border-width:0;
}
.controlstyle a.selectedcontrol img{
border-bottom:4px solid darkred;
}
Put this HTML where you want
- ACP > Display > Generalities:
- Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
/***********************************************
* Fluid Text Resizer- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>
<script type="text/javascript">
var mytextsizer=new fluidtextresizer({
controlsdiv: "sizecontroldiv", //id of special div containing your resize controls. Enter "" if not defined
targets: ["body"], //target elements to resize text within: ["selector1", "selector2", etc]
levels: 3, //number of levels users can magnify (or shrink) text
persist: "session", //enter "session" or "none"
animate: 200 //animation duration of text resize. Enter 0 to disable
})
</script>
<div id="sizecontroldiv" class="controlstyle">
<!-- BEGIN EDIT -->
<center>Mareste/micsoreaza fontul!<br>
<a href="#smaller"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_d10.png" /></a> <a href="#bigger"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_a10.png" /></a>
<a href="javascript:mytextsizer.setFontLevel(0)">Fontul de baza al paginii!</a>
</center>
<!-- END EDIT -->
</div>
Edit just this part:
- Editing:
- Code:
<center>Mareste/micsoreaza fontul!<br>
<a href="#smaller"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_d10.png" /></a> <a href="#bigger"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_a10.png" /></a>
<a href="javascript:mytextsizer.setFontLevel(0)">Fontul de baza al paginii!</a>
</center>
Now go to: Javascript codes management
- ACP > Modules > Javascript codes management :
- Code:
/*Fluid Text Resizer (June 27th, 2010)
* This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code
*/
jQuery.noConflict()
function fluidtextresizer(setting){
fluidtextresizer.count=(fluidtextresizer.count)? ++fluidtextresizer.count : 1
this.cookiename="fluidtextsizer"+fluidtextresizer.count //name of cookie to use to store persistence for this text resizer instance
this.setting=setting
this.selectors=[] //array translating setting.targets into array of jquery selectors
this.$controls=null
this.defaultfontsizes=[]
this.curfontlevel=0
var thisobj=this
jQuery(function($){ //on document.ready
var els=setting.targets
for (var i=0; i<els.length; i++){
if ($(els[i]).length==0){ //if selector doesn't yield any matched elements
els.splice(i, 1) //delete it from setting.targets[]
i-=1
continue
}
var curfontsize=$(els[i]).css('fontSize')
thisobj.defaultfontsizes.push({val:parseFloat(curfontsize), unit:curfontsize.slice(-2)}) //remember default font sizes of target elements
thisobj.selectors.push($(els[i])) //cache selector
}
if (setting.controlsdiv){ //if special container for resize controls defined
thisobj.$controls=$('#'+setting.controlsdiv).find('a[href^=#fontsize], a[href=#bigger], a[href=#smaller]')
thisobj.$controls.each(function(){
var $target=$(this)
$target.data('level', $target.attr('href').replace(/(#)|(fontsize)/ig, '')) //remove "#" and "fontsize" from href to derive level
$target.click(function(){
thisobj.setFontLevel($target.data('level'))
return false
})
})
}
if (setting.persisttype!="none"){
var curfontlevel=fluidtextresizer.routines.getCookie(thisobj.cookiename) || 0 //get persisted font level, or 0 to indicate no change in font size
curfontlevel=parseInt(curfontlevel)
if (curfontlevel>=-setting.levels && curfontlevel<=setting.levels){ //if font level within range
thisobj.setFontLevel(curfontlevel, true)
}
}
})
}
fluidtextresizer.prototype={
setFontLevel:function(level, disableanim){
var s=this.setting
var $els=this.selectors
var level=(level=="bigger")? this.curfontlevel+1 : (level=="smaller")? this.curfontlevel-1 : parseInt(level) //calculate new font size level
if (s.controlsdiv){ //if special container for resize controls defined
this.$controls.filter('.selectedcontrol').removeClass('selectedcontrol').end() //deselect previously selected control
.filter('[href=#fontsize'+level+']').addClass('selectedcontrol') //apply "selectedcontrol" CSS class to corresponding control
}
if (level<-s.levels || level>s.levels || level==this.curfontlevel) //if target level is out or range (range is int from -s.levels to +s.levels) or is current level already
return
for (var i=0; i<$els.length; i++){
var abslevel=Math.abs(level)
var valchange=Math.pow(1.2, abslevel) //calculate fontlevel^1.2
//calculate new font size, which is default font size multiply or divided by valchange:
var newfontsize=this.defaultfontsizes[i].val * (level<0? 1/valchange : level>0? valchange : 1) + this.defaultfontsizes[i].unit
$els[i].animate({fontSize: newfontsize}, disableanim? 0 : this.setting.animate)
}
if (s.persist=="session"){
fluidtextresizer.routines.setCookie(this.cookiename, level)
}
this.curfontlevel=level
}
}
fluidtextresizer.routines={
getCookie:function(Name){
var re=new RegExp(Name+"=[^;]*", "i"); //construct RE to search for target name/value pair
return (document·cookie.match(re))? document·cookie.match(re)[0].split("=")[1] : null //return cookie value if found or null
},
setCookie:function(name, value, days){
var expirestr=''
if (typeof days!="undefined") //if set persistent cookie
expirestr="; expires="+expireDate.setDate(new Date().getDate()+days).toGMTString()
document·cookie = name+"="+value+"; path=/"+expirestr
}
}
I hope i help you.
Re: I want this code
You are allowed to, As long as you link the person to the tutorial which does not require a login. He should be able to view the content of whatever you post without registering.blindbat1457 wrote:Wait we are not even allowed to mention another site even it is to help a person solve a problem?
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: I want this code
Where do I put this code?
&
- Code:
[list=1]
[*] <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
[*]
[*] /***********************************************
[*] * Fluid Text Resizer- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
[*] * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
[*] * This notice must stay intact for legal use
[*] ***********************************************/
[*]
[*] </script>
[*]
[*] <script type="text/javascript">
[*]
[*] var mytextsizer=new fluidtextresizer({
[*] controlsdiv: "sizecontroldiv", //id of special div containing your resize controls. Enter "" if not defined
[*] targets: ["body"], //target elements to resize text within: ["selector1", "selector2", etc]
[*] levels: 3, //number of levels users can magnify (or shrink) text
[*] persist: "session", //enter "session" or "none"
[*] animate: 200 //animation duration of text resize. Enter 0 to disable
[*] })
[*]
[*] </script>
[*] <div id="sizecontroldiv" class="controlstyle">
[*] <!-- BEGIN EDIT -->
[*] <center>Mareste/micsoreaza fontul!<br>
[*] <a href="#smaller"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_d10.png" /></a> <a href="#bigger"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_a10.png" /></a>
[*]
[*] <a href="javascript:mytextsizer.setFontLevel(0)">Fontul de baza al paginii!</a>
[*] </center>
[*] <!-- END EDIT -->
[*] </div>
[/list]
&
- Code:
[list=1]
[*] <center>Mareste/micsoreaza fontul!<br>
[*] <a href="#smaller"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_d10.png" /></a> <a href="#bigger"><img src="http://i23.servimg.com/u/f23/14/63/88/66/font_a10.png" /></a>
[*]
[*] <a href="javascript:mytextsizer.setFontLevel(0)">Fontul de baza al paginii!</a>
[*] </center>
[/list]
Similar topics
» When i paste a long code via [code][/code] the page expands
» Tech please respond! What is the border color code/script code
» I add a new Forum widget for my Affiliates code but I want to remove the code that shows there!
» what's the code to customize the quote/code color for phpbb3?
» help in this code . the effect on code > add button to Put under the colored writing
» Tech please respond! What is the border color code/script code
» I add a new Forum widget for my Affiliates code but I want to remove the code that shows there!
» what's the code to customize the quote/code color for phpbb3?
» help in this code . the effect on code > add button to Put under the colored writing
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum