Sometimes I see great javascripts on the net, but the size is wrong for the space on my web page, either the javascript is too small or too big, it would be great if I could re scale it so that it would fit in the space I have available.
Can we do something to override how big the javascript is, either by saying, make this javascipt, say 90% or 150%, or saying make this javascript 10% smaller or 50% bigger, or say make this javascript fit say this many pixels, say the javascript is 400 pixels high by 200 and we wanted it bigger we would say scale it bigger so it was 500x300.
What I would like is some kind of control, a command of some kind that I could put in so that I could re size any javascript I wanted. I suppose one could go and and re set everything that points to a size, but that's too hard for me, I am a beginner at javascript and re sizing every bit of code would cause problems, I want something that overrides it with a simple command that makes it bigger or smaller so javascripts will fit into whatever size space I have available on a web site.
If anyone can come up with an answer to this, it will make me very happy indeed.
Thank you for any help on the problem.
Lets make something up here for the sake of an example, lets say we have a javascript for a tic-tac-toe game we have found on the net, lets say we paste the code for it into our web page and the thing is 400x400 pixels in screen size on our web page. Ohh no, its too big, or perhaps its too small, lets say I want it to cover half that screen size, or I want it twice as big or some other change in size it appears on the screen, I want to know if this can be done with some method or some code, so that I can quickly and easily re scale items.
so what you need to do is look through your javascript file and find these sizes, and change them if you deem it necessary. But usually that kills the whole layout and nothing will work anymore, so good luck.
I dont want to have to re size every single element, it would take forever and Im sure id get problems changing every single element in the script, I am bound to get it wrong and its just not practical if there was loads of elements and I have to go over ever single one of them in all of the code.
isnt there one thing we can add like tell it to enlarge or shirt what size it all is, like a master size thing, just tell it to make everything a certain percentage change.
Also I remember using iframes years back, I'm sure that could be changed in size to how big it displayed it, couldnt something like that be done.
Anyone got any ideas on how I can overide how things are scaled.
Dead simple, just change what size it is on the screen, what I dont want is to go over hundreds of line of code and change the size on every element, these examples are small, some scripts could be very large, I want something that can be done easilly to alter the size it is on the screen of the user.
use percentages for containers and images.... called from the css.
there is really no such thing as a "drop-in" script... you will always have to make adjustments to style or content and most of the old javascripts floating around are not w3c compliant... you will have to fix them up. small price to pay.
Could anything be done with iframes, I seem to remember using them years ago to put other sites content into my site and Im sure I changed the scale of the content, though perhaps the content may of been in flash, or just html, I cant remember as it really was quite some time ago.
Bookmarks