|
|
|
|
![]() ![]() |
Jan 13 2008, 10:01 PM
Post
#1
|
|
|
Member [Level 3] ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 92 Joined: 1-January 08 Member No.: 55,554 |
ok i need a script that will allow people to change the font size of the page just by clicking on an image. like if i had 3 images, a plus, a minus, and one that said reset. if they clicked on the plus the size would go up. visa versa if they clicked on the minus the size would go down. and if they clicked on the reset it would go back to normal size.
if some one knows how to do this or where i can find a script for this that would be great. |
|
|
|
Jan 13 2008, 10:23 PM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 275 Joined: 5-October 07 From: Random Places Member No.: 51,171 ![]() |
You are wanting a link with the image being the link and using functions to change the font. I do not know the exact functions, but I can show you how to use the link.
CODE <a href="java script:function1()"><img src="up.gif"></a> <a href="java script:function2()"><img src="reset.gif"></a> <a href="java script:function3()"><img src="down.gif"></a> Something like that should give you the functionality of the buttons. Of course the image path and the function names should be changed to suit your needs. This post has been edited by coolcat50: Jan 13 2008, 10:24 PM |
|
|
|
Jan 17 2008, 10:14 AM
Post
#3
|
|
|
Member [Level 2] ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 76 Joined: 30-October 05 Member No.: 13,571 |
Try this codes:
CODE function changeFontSize(s){
document.body.style.fontSize = s; } |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 20th July 2008 - 12:07 PM |