vytas Posted January 12, 2007 Share Posted January 12, 2007 check my new site.SITEIt has a button that u must click.If ur done (hint it has something to do with 40000)Tell me what u think about it but. don't tell everything that happens. Or else it isn't as fun for the other people that checkSom of the site is written in dutch but just click the button Link to comment Share on other sites More sharing options...
Jonas Posted January 12, 2007 Share Posted January 12, 2007 Haha, very funny, an alert script that never terminates (unless you actually click 40,001 times that is). Luckily, Opera includes an option on alert buttons to stop execution of scripts on any page. I don't think anyone will be pressing that button from now on though. And it's always a good idea to use caution before pressing buttons you don't know what do. Link to comment Share on other sites More sharing options...
vytas Posted January 12, 2007 Author Share Posted January 12, 2007 i made it a few times for pages of my friend they like it.It's just a simple code so i dont botherJonas i think i saw one of your galaxies site on the space topic and i whas wondering how did you do that.It said it whas made in javascript but didn't watch the source code so could u tell me a little ?srry if it wasn't yours Link to comment Share on other sites More sharing options...
Jonas Posted January 12, 2007 Share Posted January 12, 2007 You mean this:http://home.no.net/jonvel/solarsystem/ ?It's made with html, css and javascript, yeah. And a couple pictures of course. Link to comment Share on other sites More sharing options...
vytas Posted January 12, 2007 Author Share Posted January 12, 2007 yea that i quess u used CSS for position and javascript for the if statement.and also srry for the double (srry if...) i pressed add reply twice Link to comment Share on other sites More sharing options...
Jonas Posted January 12, 2007 Share Posted January 12, 2007 The script is all there in the source, partially in the code, partially in two external javascript files. Although I did make that particular design, I by no means made the code for it. We did it in IT classes in High School, as an example of what javascript could do. We primarily programmed in Visual Basic, and made the same thing there I might add, but then our teacher though it'd be fun to see another programming language and its approach to the same thing. It's really amazing what javascript can do, if you look at pages like walterzorn.com (where we got the file called wz_dragdrop.js), and what's shown there. All javascript you know, and all drag'n'droppable. Link to comment Share on other sites More sharing options...
vytas Posted January 12, 2007 Author Share Posted January 12, 2007 Wow that is very cool.You can make some nice aplications with that.Are u still working on that solarsystem site ?It would be cool to know when all planets were in a line with each other.That the planets would spin around the sun in normal speed and the moon around the earth.Would that be possible ???¿¿¿??? Haha, very funny, an alert script that never terminates (unless you actually click 40,001 times that is). Luckily, Opera includes an option on alert buttons to stop execution of scripts on any page. I don't think anyone will be pressing that button from now on though. And it's always a good idea to use caution before pressing buttons you don't know what do.It is always risky to go on even the site people can set the onload on the body element.So if you only visit the page you could download all kinda things. Link to comment Share on other sites More sharing options...
Jonas Posted January 12, 2007 Share Posted January 12, 2007 Wow that is very cool.You can make some nice aplications with that.Are u still working on that solarsystem site ?It would be cool to know when all planets were in a line with each other.That the planets would spin around the sun in normal speed and the moon around the earth.Would that be possible ???¿¿¿???I stopped working on that thing a long time ago, and never intended to put up all planets. The thing is, even if you add all 9 planets (8 excluding Pluto), you won't see most of them, because they'll be put off-screen. The screen will expand to the right and bottom, but the planets will disappear on the left and top. Link to comment Share on other sites More sharing options...
vytas Posted January 12, 2007 Author Share Posted January 12, 2007 Or smallen them and don't put real(on scale) distances between them.It probably will be doable.Only i never worked with DHTML before so i don't know if it's possibleDoes some1else got another JOKE to publish. or be creatife and make 1 now .pls do not use religion or nasty words.And i would love to see some in another script or programming language Link to comment Share on other sites More sharing options...
Jonas Posted January 12, 2007 Share Posted January 12, 2007 Definetely possible, however I won't do it. But please, experiment with it. It's not really difficult if you go through the code. The only thing you need to change is in the index file, everything should remain as-is in the .js files. <img alt="planet" src="redball.png" id="ball4" /> <script type="text/javascript"> SET_DHTML("ball0","ball1","ball2","ball3","ball4");Add a new <img alt="planet" src="ball.png" id="ball5" /> and add another ID in SET_DHTML("ball0","ball1"..."ball4","ball5");As for working with DHTML, that's really just a name for a combination of html, css and javascript to make Dynamic HTML. Link to comment Share on other sites More sharing options...
vytas Posted January 12, 2007 Author Share Posted January 12, 2007 Yea i will try to make something.oh yea i forgot to paste the code for my joke. <script type="text/javascript">function dalert(){for (i=0;i<=i;i++){alert ("you clicked: "+i)}}</script> And i tweaked it a little bit so it's infinity do u see what i have changed ? Link to comment Share on other sites More sharing options...
Jonas Posted January 12, 2007 Share Posted January 12, 2007 Well duh. for (i=0;i<=i;i++){ used to be for (i=0;i<=40000;i++){. Link to comment Share on other sites More sharing options...
vytas Posted January 12, 2007 Author Share Posted January 12, 2007 I know something that would be really anoying.What if i make a infinity code for pop-up boxes.i am not that good at pop-up boxes right know so better get learningBut can i use the for(i=0;i<=1;i++){for the pop-up boxes ? Link to comment Share on other sites More sharing options...
Jonas Posted January 12, 2007 Share Posted January 12, 2007 If you really want to make annoying pages like that, it's not really difficult, no loop required. Make a document with this code:<html><head><title>POPUP Madness</title></head><body><script type="text/javascript">window.open("path to the the exact same document");</script></body></html>But who would you use these pages on. Just to practise javascript and show it to your friends? Link to comment Share on other sites More sharing options...
vytas Posted January 12, 2007 Author Share Posted January 12, 2007 People like Rienk he's a boy in my class he's realy annoying.I would love to see him be mad at me.That reminds me some1 told the teacher about a quiz i had almost got detention i would love to see him get angry Link to comment Share on other sites More sharing options...
Jonas Posted January 12, 2007 Share Posted January 12, 2007 And what makes you think he would visit such a page? Aren't there better ways to deal with what you call "annoying" people? Like for example ignoring them? Link to comment Share on other sites More sharing options...
vytas Posted January 12, 2007 Author Share Posted January 12, 2007 yea but he once set me up against a teacher he got realy pissed sent me away.But about the code i have it finished ow it's sweet i tryd it. <html><head></head><body><script type="text/javascript">for(i=0;i<=i;i++){window.open("http://vytas.freehostinn.com")}</script></body></html> Oops i edited it Link to comment Share on other sites More sharing options...
vytas Posted January 12, 2007 Author Share Posted January 12, 2007 Ok because i can't have 2 jokes on my page i wanna manage a poll: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now