Chocolate570
-
Posts
1,550 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Posts posted by Chocolate570
-
-
Like this:
function rosterList() { if(!document.getElementById('list')) { var listBox = document.createElement('div'); listBox.id = 'list'; listBox.style.width = '100px'; listBox.style.backgroundColor = '#30363D'; listBox.style.borderTop = '1px solid #C2D2E0'; listBox.style.borderBottom = '1px solid #1C1F22'; listBox.style.borderLeft = '1px solid #1C1F22'; listBox.style.borderRight = '1px solid #1C1F22'; listBox.style.color = '#f1f1f1'; listBox.style.fontFamily = 'Ms Sans Serif, Arial'; listBox.style.fontSize = '12px'; listBox.style.position = 'absolute'; listBox.style.top = '135px'; listBox.style.left = document.getElementById('headTbl').offsetLeft+411+'px'; listBox.style.padding = '2px'; listBox.innerHTML = ' ... my menu ... '; listBox.onmouseout = 'this.style.display="none"'; document.body.appendChild(listBox); }} -
Sure. :)When you're creating the menu element, put an "onmouseout" statement on it. Make it so that when the mouse goes out, the display of the element is set to none (this.style.display='none'). Then, next time the image is clicked, check if the element has already been created. If it has, then just set the display to inline, or whatever. :)Choco
-
1) We're not here to do your homework. Please give it an attempt, and then tell us what you have so far. We'll help you from there.2) I can't understand anything you just wrote. Could you explain a bit more?
-
Well, they're quite complex to get cross-browser. It's easier to use a readymade one, or make one out of CSS.But if that's not an option, then I guess you could retrieve the position of the element clicked on (like an a) and create a new element with a relative position and position it underneath the a element.
-
Just use this:<script type="text/javascript">x=document.getElementById("txt");x.name=sSlotID</script>
-
Can I have a link to your page, or at least the code?
-
Because it's 100%, you can just get the width/height of your parent element. Does the td it is contained in have a specific size?
-
No, I'm sorry you think that--I was trying to ask whether or not you know java/c/javascript, otherwise you wouldn't really understand what I'm trying to say. Please don't take offense.
-
You'd have to use arrays. :)I can show you how to make it, but I wont make it completely for you.First, learn how to insert options into a select box, with createElement() and appendChild(). Look them up on a dom reference, or the Mozilla Dom Docs.Next, make 2 arrays. In the first one, put all of the US states. In the second one, all of the canadian provinces.Loop through the arrays. Check what option is selected in the select box. If it's United States, then loop through the arrays and keep apending a new option with the value of the array[loop] value. Congrats. :)But wait---are you at least slightly experienced in javascript? You wont have a clue what I'm saying unless you know java/C...Which I doubt.
-
That's pretty good for a beginner Nice work. Just a couple of suggestions:1) Center your banner, or make it wider.2) Add some text.3) Host it somewhere so we can see it without having to go to the tryit editor.
-
Hey, I just moved this topic. It would be better off in the general section of the forum. :)It's a nice site. The colors match well. But like Webworldx says, it would be better off centered.
-
You'll have to use the following code for IE to work:document.body.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=75)";Try that.
-
I've never seen an editor as advanced like that...but tinymce does a pretty good job, and is very customizable.http://tinymce.moxiecode.com/
-
Chuck Norris built a time machine and went back in time to stop the JFK assassination. As Oswald shot, Chuck met all three bullets with his beard, deflecting them. JFK's head exploded out of sheer amazement. Well, I guess that's not the point either. But could we bring those jokes out so fast without technology? I should say not. I doubt we would have even heard of them.
-
You better not make me bring out the Chuck Norris jokes. I have approximately 782.5 (3 are unfinished) jokes on my computer, and I even created a program which brings up a random one quickly so I can dish it out at anyone. You wanna mess?Chuck Norris does not have a chin. Underneath his beard is another fist. -
Look at my examples. I mean the things that we create and are not easy to get without us choosing to get them.Bacteria and viruses have and will always be around. The black plague was not caused by humans. AIDS is not caused by humans, sure it is spread by/through humans, but it doesn't have its origin in human technology. Leprosy is not caused by humans. Neither was smallpox. Nor SARS or Bird Flu. Saying that everything bad in the world is caused by humans is just being downright negative.True, we are the only creatures who harm ourselves against better judgment, but that is not to say we are the only things who harm us. -
But you must remember at the root of the diseases is us--our inability to keep self control and keep away from the things that are bad for us. (E.g. smoking, drinking)
-
Exactly. But did George outright say "Ok, I'm gonna kill Lennie because otherwise, an angry mob will lynch him and that would be bad. So I'm gonna take this gun and be all merciful and shoot him."Nope. He shot Lennie.I'd say a blessing. Take a look at 10th century London. A city no more than a few miles across and populated by wooden houses. People die aged 40. 50 if you're lucky. Now take a look at 21st century London. Millions of people (mostly) living in much better conditions and a life expectancy of 70 years (i think...). Try and tell me that isnt a blessing. Kind of going onto the whole progress vs simplicity thing, but the general idea is the same. Another example, my phone. two years ago i didnt have a mobile phone, and i couldnt go out of the house because my parents would not know where i was. Now i can walk around to my friends' houses, hang out, own people at lan parties, and if my parents need to contact me they just need to press a few buttons. Some might say that this induces theft (carrying a mobile phone) but biometrics will hopefully put this into place too.PS.That would be because if he let Lennie live the angry mob would hang him. Im doing Of Mice and Men as a case study in English -
You can choose to consciously ignore the theoretical and philosophical roots behind anything all you want. But your subconscious is still going to impact your morals and beliefs. It is for that reason that theoretical and philosophical are so important - they help reveal the motivations the control the human mind.If you truly did not care about all the "deep" things about like - then you would choose to not have an avatar. The fact that you have chosen to use the Gimp logo as your 'tar suggests that you have put thought into how you wish others to perceive you. You may discount that as - "heck, I just like the logo" or "naw man, I just like the software" but the relationship between you and your avatar shows a certain depth to your thinking.It obvious that if theoretical and philosophical ideas were not discussed then we would never be able to learn how to deal with people. We would be left only to tolerate their behavior - and tolerating is the worst thing you can do throughout your life. Either accept it, get rid of it, but never tolerate it.In any respect, living in superficial world will never allow you to appreciate everything that it is composed of. Chocolate, be careful with this kind of statement"Why would we dig deeper into our world when the superficial surface around us pleases us?"Would you say that if your superficial world was surrounded with murder, lies, corruption, prejudice, and poverty? You can be one of those people that turn a blind eye to all the problems in the world if you like - and you may find yourself around a select few that stay on that journey with you, but people like me have a word for people like that - snob. I mean absolutely no disrespect in my comments, but I think it is important to understand how that perspective might be viewed by others. You are young and you have many experiences ahead of you - I am only worried that this angel will greatly reduce the opportunities.Respectfully,Skemcin
True. But those impacts happen no matter what we do. We can't ignore them---but do we have to dig deep into them and try to figure out why and how they came into existence?You can choose to consciously ignore the theoretical and philosophical roots behind anything all you want. But your subconscious is still going to impact your morals and beliefs. It is for that reason that theoretical and philosophical are so important - they help reveal the motivations the control the human mind.
Enlighten me? You might say this is an excuse, but I needed an avatar, and the URL of the GIMP logo was on my clipboard at the time after solving a support topic. So I pasted it. You might say that over the year (or so) that I've been here I've created an underlying connection with this avatar. And if that's true, and I don't know that, why would it matter? What would be the reason for actually knowing what the fact that I chose the GIMP avatar? Would it make a difference on my future?but the relationship between you and your avatar shows a certain depth to your thinking.
Touché. The fact that I've grown up in safe environments might affect the way I feel about the outer, unchanged-by-reasoning shell of the world.In any respect, living in superficial world will never allow you to appreciate everything that it is composed of. Chocolate, be careful with this kind of statement"Why would we dig deeper into our world when the superficial surface around us pleases us?"Would you say that if your superficial world was surrounded with murder, lies, corruption, prejudice, and poverty?
No offense taken. I can take criticism :)That I am. Thank you for taking the time to type out this post. It's quite interesting. -ChocoYou can be one of those people that turn a blind eye to all the problems in the world if you like - and you may find yourself around a select few that stay on that journey with you, but people like me have a word for people like that - snob. I mean absolutely no disrespect in my comments, but I think it is important to understand how that perspective might be viewed by others. You are young and you have many experiences ahead of you - I am only worried that this angel will greatly reduce the opportunities. -
That they do. But I still don't want to know the symbolism behind the books. Talking pigs and friends shooting friends are enough.
-
I was more discouraged as a programmer when my code didn't work in all browser than when I found out there was a difference between them.
-
Read it again. That was the point Jonas. Thanks for completely ruining my rant.
-
I don't like philisophical questions. Why would we dig deeper into our world when the superficial surface around us pleases us? Why would we want to know why George killed Lennie in Of Mice and Men, and who cares what Animal Farm was symbolic for? Computers are a blessing, because I'm having fun. I refuse to look down the road going all mystical-crystal-ball by thinking about how what I do on the computer will affect my life in the future.Just my opinion. Oh by the way, blessing. :)Choco
-
Yea, that would be best. It's the most straightforward.
Funny script...
in JavaScript
Posted
That's awesome! Nice find.