| |
| |
| |
|
Page: 1 2
Comments:
<0> i mean... aren't there some predefined primitives? <0> rectangle, circle, etc... <1> you can use a sized div <2> Or SVG. <2> Sounds like that's more what you're after. <1> is there a default dialog with Yes/No as answer that returns true/false ? <0> svg = scalable vector graphics? <1> yup <0> isn't that another image format?
<0> i need to keep it as simple as possible, only basic javascript and html <0> :| <2> Not an image format as such. <2> But you can't do it with only basic javascript and html. <1> svg is just xml processed <2> Indeed. <1> if you only need a rectangle, i'd go for a div <1> is a lot easier <1> that is if you need to put it inside a web page <0> i need a rectangle with some text inside, that needs to be moved across another rectangle or other shape... the whole thing need to be event driven: i need the animation to start whenever i click somewhere, and stop whenever i click again <0> is the text going to be an issue? <2> For a rectangle you can just put borders on a positioned div and adjust its top and/or left positions. <0> i mean... can i use it easily with the div? <0> ah, does the div do the redrawing and stuff by itself <0> ? <0> :) <1> yeah <2> No, the browser does. :-P <0> what about the text? <0> i know very little about html <2> Text is irrelevant. <1> <div id="moveme">Teh Text</div> <0> if i write something with the space enclosed by the div it tag, i suppose it's going to print it... is it? <0> :) <0> ah, so i was right :P <1> document.body.moveme.innerHTML = "Teh text"; <1> or something like that <1> < ! <2> Not something like that. <0> are both ways valid? <2> document.getElementById('moveme').innerHTML <0> oh <0> and i suppose the colouring and stuff go something like <0> document.getElementById('moveme').bgcolour="red" ?
<2> What did I say earlier? <0> i understood what you said earlier, it's just that i don't know the basic methods/properties <0> please put up with my stupidity :) <2> .style <0> ok... <0> the next thing... how do i do the actual movement? <2> <2> What you do is manipulate CSS properties when you want visual effects. <0> is setting the position a method or do i need to change a field? <2> (...) which you can find listed here: http://meyerweb.com/eric/css/references/css2ref.html <0> ah, is the position in .style, too? <2> Yes. <0> i have one more question, and i promise it's the last one <0> how do I do the event handling? <2> And it's a string with an integer and a unit part, not just an integer. For top and left I mean. <2> http://www.quirksmode.org/js/introevents.html <0> if (document.getElementById('moveme').onclick) <0> ah, ok <0> thx <0> :) <0> <a href="the_main_and_only_page" onclick=/* div handling code */> <0> is that the way to do it? <0> ah, i suppose not... it needs to react when the div is clicked... <0> hmm, some pointers please? <document.getElementById.('moveme') onclick = /* ... */> ??? <2> I reccomend you read the whole article before experimenting. <0> I was thinking about that as i was writing the dumb stuff above :) <0> sorry <2> There's several pages btw. Click "show site nagivation" on the top left to see the menu. <2> Lo RoBorg. <3> hey <4> Spyou t debile ou quoi? <4> Spyou suis la conversation un peu <5> english <6> ( i think he speaks to himself ) <4> sorry guys :) <4> i don't understand what happened <4> wrong command <4> amsg instead of msg :) <4> mea culpa <7> mais non de dieu! t'es dbile ou quoi! <6> Shes guess so :P
Return to
#javascript or Go to some related
logs:
#AllNiteCafe ITEMS USED TO BE TEMPORARILY STORED IN PUB CELLARS #linux aenzg #php #MissKitten hy, hvordan got det? #c++ #c++ miranda don sin restriciones
|
|