hi. you've probably got a script for this already, but i've searched and i keep coming up w/ stuff about "innerText"... which, i can only assume is a DOM thing, and probably not what i'm looking for
it's simple- i want a visiter to be able to change italic, bold, normal-- some part of the text, to and fro. the idea is to be able to sample a browser-font-display in different versions, so it's really a developer tool... so... you know, keep it on the DL.
the action, i imagine would be "click here for the < p > below to become italic", click for this word to be bold bold. switch everything back to normal you far-from-normal-geek and go outside for once!
click for different colors would be cool too-- but i'm sure i can get all of that once i get even a piece of the javascript / CSS / html concept of how it would work together... actually, color i will leave as my "challenge" as it is likely a different part of the page elements, so it will be good to see if i can get that-- if we get the font-style thing happanin okay.
(thank goodness i'm FINALLY starting to catch-on to at least a few techniques! -- with much thanks to the kindly help here at Dynamic Drive, i want to shout that out! now i can actually picture some "cool-stuff" going on in my pages-- which i never before would have considered. it's also a "letting go" of the idea to have 0% javascript, in favor of 100% CSS-- now i focus on the "duality" of accessibility vs coolness.)
EDIT: actually, in the meantime, i'm going to see if i can convert the "display:none" [more...] trick... i just need to know the right elements though, which is actually why i came here in the first place... so i am still looking for help, of course...
thanks!



Reply With Quote



Bookmarks