![](http://content.invisioncic.com/r49260/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
Chocolate570
-
Posts
1,550 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Posts posted by Chocolate570
-
-
Object
in JavaScript
<script type="text/javascript">function wizard(src,writer,txt,imager){this.src=src;this.writer=writer;this.txt=txt;this.imager=imager;}blue=new wizard();blue.src="lotad.gif"blue.writer="Blaaaaaa!"blue.txt="text"blue.imager="imager"</script>
Well, you can't make an object from another function. The object has to be declared as: blue=new Object(). It should work once you've fixed the bug I stated above, but your wizard() function wont, so I suggest you add an extra parameter in the function and then call it, like this:
<script type="text/javascript">function wizard(src,writer,txt,imager){document.getElementById(this).src=src;document.getElementById(this).writer=writer;document.getElementById(this).txt=txt;document.getElementById(this).imager=imager;x=document.createElement("img");x.src=this.src;}blue=new Object();blue.src="lotad.gif"blue.writer="Blaaaaaa!"blue.txt="text"blue.imager="imager"</script>
What that should do is make the object's values worth different things and then make an image tag and change the src of it to the object's SRC. Sorry if it doesn't work, I'll have another go
-
-
I don't understand what you mean. You can redirect to the site with a .co.nr name though. :ph34r:
-
-
It didn't happen to me. I'm sorry I can't help, but the problem just isn't occuring on my computer. :S
-
Hey, welcome to the forum!Try this hoster. On top of html documents, you can save text files, php files, images, and all kinds of stuff. Enjoy!
-
Do you think you could please keep your questions in one topic? You've made quite a bit of topics. Thanks.It didn't work in firefox for me, but that might just be because the images aren't be displayed. But what happens wrong?
-
Object
in JavaScript
I don't understand. Will this be used for your game, or what? This is all I can think of.
wizard = new Object();wizard.src="src of image"wizard.writer="what writes"wizard.txt="text"wizard.imager="imager"
-
People, when I've said something, there's no need to raise your post count by repeating me twice.And he's solved the problem. Congrats, club!
-
It worked perfectly for me when I shortened the code to this:
<head><script type="text/javascript">function wizard(){alert("Blaa,blaa, blaa,blaa,blaa,blaa,blaa,blaa,blaa,")}</script></head><img src="http://i43.photobucket.com/albums/e366/kyogre_atlas/Zelda%20spritet/npc_wizard.gif" onmouseover="wizard()">
By the way, I only removed the extra style attributes for aesthetic purposes.
-
Please post only one copy of your problem on the board. Multiple copies will be closed. Thanks,The W3S Forum Staff
-
You need to enable javascript in your browser. Tell me what browser you are using, and I can give you step by step instructions.
-
me and you both chocolateI believe the saying goes "You and me both" smile.gifOh...include me too.
It's official. None of us have lives. Hey, that means we're immortal! Woohoo!So..."him, you and me all"or, since it's me saying this:"him, him and you all"or something like that.-
1
-
-
Please cast your vote. This is a poll-only, and completely anonymous, so please be honest. No one's gonna come after you either way, though.
-
Gosh darnit...I forgot to take out my new umbrella. Oh well, next time it comes around, i'll be waiting."I can see clearly now the rain is gone" Sorry, couldn't help itI think I understand now:var x = 2;x += 8;which means x now = 10. It takes the previous value of "x" and adds the new value to the current value of "x"...right?If not, I guess I'll need more coffee to finish waking up.
-
Check out the operators page. What the += does is this. In this example, the two statements are the same.
//First Statement, using the +=var x;x+=2;//End of first. Starting second.x=x+2//End....
As you can see, += means the same thing as the variable is itself plus an integer or another variable. Do you get what I mean?
-
I guess you could write your own with PHP and MySQL, but java is the best way to go...you can embed it on an HTML webpage.Another alternative is going here: http://www.zend.com/apps.php?CID=240And looking at their list.
-
Firefox doesn't support document.all or the bgsound tag. You can do this by embedding music, though.
-
OOP is usually used in languages where you interact with the user----and that interactivity is very important.
<script type="text/javascript">var coder=new Object() //declare the objectcoder.name="Choco" //set the method 'name' to 'Choco'coder.prefLang="JavaScript" //set the method 'prefLang' to 'JavaScript'document.write("Our new coder is "+coder.name+". He likes "+coder.prefLang+". Welcome!");</script>
That's a code to show you how to declare objects and use them. This is one that's an application in most sites.
<script type="text/javascript">x=document.getElementById("test") //set x to the object 'test'x.src="omghaxxors.gif" //set the method 'src' to 'omghaxxors.gif'</script>
Do you understand?
-
Yup. When I use mine, it takes me less than a minute to get the mail.
-
Well, you're trying to set an element with the id of 'howto', when it's called 'tdhowto'.
-
I don't use photoshop. I use the GIMP. :)Nice job, everyone. I can't go next.
-
Putting styles in are very hard in phpbb, at least the proper way. What you do is put <style type="text/css"> sig css here</style> at the beginning of overall_header.tpl. And then do whatever you have to.
-
I think he wants what you can see at the bottom of this site:http://chrisfries.net/thedarkdragons/fansite
GRRR...IE!
in JavaScript
Posted
Well, do you think you could put that in as a complete URL? So everyone could access it. I'd like to see how far you've gotten![:)](//content.invisioncic.com/r49260/emoticons/default_smile.png)