Your in luck!!! Im currently working on this function for myself. At the momment it just converts from points to pixels..not the other way round as yet. I have also created it so that you can view your text in diffent hex colours and also changes the font and sizes accodingly along with the colour backgruond you use. If you advance this function..let me know so i can use it as well. here is the code:
...........................................................
file: p2p_frame.htm
...........................................................
nope, i tried this function, it gives me incorrect results, ive been reading ur code too, having been able to understand what its supposed to do !!! what if i give the function (convert) a parameter of 500 , what happens ?
Where i have written "file: p2p_displayText.htm, p2p_frame.htm, and p2p_input.htm" etc. the parts under it are related to that page. You need to create the three pages that I have given you, open the p2p_frame.htm file. The code will only work if its in the frameset that i have given you.
I think what you might have done is just tried to run the script for the p2p_input.htm page and its giving you errors...which it would. The script does work as I have literally just cut and pasted the parts from each of the three pages.
I will try and put it online for you if i can find some time and some space.
Hope this has helped,
ps you dont need add anything to the convert function for now....once you have it working as i have coded it...try and modify it a bit. I am still working out bits a peices.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.