- Interests
- juggling, playing drums, programming, hackey sack, music, having fun. :D
120 Posted Topics
Re: frankly I bet D doesn't stand a chance against C# | |
Re: Yes, if you do not specify which parent constructor to call, C# will automatically call the base class's parameterless constructor. see [URL="http://www.csharp-station.com/tutorials/lesson08.aspx"]here[/URL] :) | |
Re: @sumdude you can use many different techniques, but each one will limit some dimension of the html its applied to. You could have an image with four corners (transparent in middle) limiting all sides, 2 corners vertically, limiting the height. You can have 1 image for each side and one … | |
Re: could you post a link to where you've seen it before? If the user has the capability to play it in the browser, then it won't want them to open it in a different app. You could have them download it, but that removes the streaming possibilities (aka bad). :D | |
Re: [code=html]<FORM> <INPUT TYPE="button" VALUE="Add to Favorites" onClick='window.external.AddFavorite(location.href, document.title);'> </FORM>[/code] | |
Re: [CODE] document.getElementById("your id").onclick = function() { var textbox=document.getElementById("your id"); textbox.value = textbox.value.toLower(); textbox.value = textbox.value.substring(1, textbox.value.length -1 ) + textbox.value.charAt(0).toUpper(); [/CODE] I'm not sure if that's perfectly correct, but this looks like homework so you should fix it yourself. :D | |
Re: Yes, you can make your site look good in all browsers. IF you are willing to write code specifically for each one that doesn't implement the standard perfectly...meaning all of them...:D | |
Re: suggestion: if you want to have autoplay music/video, please offer some way to turn it off. I had to ad block the thing to make it shut up. :D | |
Re: Make the image less wide, put the text in a div, and position the div next to the img within the #head div by setting its top bottom and left properties to 0px. | |
Re: Look up "javascript constructor" :D <script> function construct(key, value) { this[key]=value; } var foo = new construct("foo",1); alert(foo.foo); </script> | |
Re: just use [CODE]windows.setTimeOut(__function that launches lightbox effect__,2000);[/CODE] | |
Would you downvote someone for no reason if you lost a bit of your own rep doing it? Probably not. This would keep you only downvoting posts you really think deserve it, and help prevent downvote abuse. What are you thoughts? | |
Re: All javascript can do is prevent your webpage from reacting to keyboard and mouse input, it cannot "disable" them. It is perfectly "internationally legal" for your webpage not to care if the user clicks on it. :D | |
Re: There are many different ways to give you're C++ program a Graphical User Interface (GUI). If you're writing just for windows, you can use C++.net to take advantage of windows forms or WPF. There are also many libraries like [URL="http://www.wxwidgets.org/"]wxwidgets[/URL], [URL="http://qt.nokia.com/"]qy[/URL], [URL="http://www.radcpp.com/"]radC++[/URL], etc. If you want some information that's actually … | |
Re: java has Error that's a subclass of Exception, but I really have no idea what you're asking, so unfortunately, we can't help you. | |
Re: here's what I see in ie8 and 7: [URL="[url=http://www.freeimagehosting.net/image.php?ee9b466daa.png][img]http://www.freeimagehosting.net/uploads/th.ee9b466daa.png[/img][/url]"][url=http://www.freeimagehosting.net/image.php?ee9b466daa.png][img]http://www.freeimagehosting.net/uploads/th.ee9b466daa.png[/img][/url][/URL] what should it look like? | |
| |
Re: 1 You set the opposite action to false in your event handling for the keydown, so don't need to worry about that condition later. 2 make them else-ifs as only one thing is going to happen. 3 if x=true, x==true returns true and x==false returns false, so the ==true is … | |
Re: 1 yes [URL="http://www.w3schools.com/CSS/css_margin.asp"]see here[/URL] 2. just put the text in a paragraph element or another div and set the margin on that. :D | |
Re: you set the value to null then read it? Why are you using "while(list.options.length)"? try this: [CODE]function getvalue(list) { document.getElementsByTagName("body")[0].bgColor=list.value; }[/CODE] | |
Re: I believe firefox PLUGINS are written in js. Extensions can be written in ta language for the platform its being run on. (i think) | |
Re: To get the code for the objects, think of how things are in real life. I can't say anything about what your teacher wants, but use as many classes as you need. You will have a card class, and deck and hand classes which are containers for cards. Then maybe … | |
Re: ending bracket needed after earth constructor before main, and note sure if you can put comma's in numbers. What problems are you encountering? | |
(I'm sure this has discussed before, so could someone post a link? The search bar is unhelpful) If you've been part of the site longer, you're opinion matters more than everybody else's? Why? If I think something has been helpful, I can give a little rep, but if AncientDragon thinks … | |
If you hit any of the options in the "lastest posts" they bring you to a search, and the url had a numerical id of the search. If I bookmark it, it leads me to a dead page within hours. How can I make a bookmark that will take me … | |
Re: [CODE]msgLength / smsLength = numMsgs;[/CODE] This isn't allowed as you probably can't (and definitely don't want to) assign a value to the quotient of 2 numbers. do you want [CODE] numMsgs = msgLength / smsLength;[/CODE] ? | |
Re: easy way to make them appear next to each other is give them a float: left and make sure they can fit next to each other comfortably. [URL="http://www.thesitewizard.com/css/design-2-column-layout.shtml"]this should help :D[/URL] | |
Re: where's ProductDB.inventory declared? you can't just start referencing variables in a function when they were declared in main. You might want to pass it as an argument or declare it somewhere else. :D | |
Re: try having the destructor output something, and outputting iProducts in various places, like at the beginning and between the two constructions. :D | |
Re: Which part do you want help with? for starters, determining the fib sequence will look something like this: [CODE] int[size] num; num[0]=1; num[1]=1; int index=2; while(notdone) { num[index]=num[index-1]+num[index-2]; index++; } [/CODE] but you'll have to tweak it to fit what you want it to do. :) | |
Re: answer: "yes, if you ask a clear question and show effort" :D | |
Re: You can definitely do the timeout thing with setTimeout( 300000 ); (number of milliseconds in 5 minutes). The interesting part would be keeping it running on a different page. It would restart whenever you navigated to a new page, which might make this much better suited to server-side programming :D | |
Re: [CODE]var aNumber = parseFloat((window.prompt("hello, what's the max number?","")) ;[/CODE] [CODE] function getRoundedRandomNumber() //no arg, use already existing var // round the number generated by the random { var aRoundedNumber = Math.round(Math.random() * (aNumber)) ; // show the result of the number return aRoundedNumber ; } [/CODE] [CODE]ONCLICK = "window.alert(getRoundedRandomNumber());">[/CODE] | |
Re: define "neither works" :) | |
Re: test_player.health You can manipulate it like a normal variable, aka get and set the value :D | |
Re: [CODE]if(document.form1.partpay[0].checked && document.form1.paidnotes.value != ""){ alert("DON'T FORGET To Record this Part Payment into the 'Part Payment Notes' Field"); document.form1.paidnotes.focus(); return false } [/CODE] does that help? :D | |
Re: The global statement allows you to break a variable out of the function scope it'd normally be contained in if you just defined it in a function. The "Global variables are evil" paradigm says that anything to do with a global is inherently evil, and that class scope should usually … | |
Re: perfect time for class factoring! see how both classes have these methods: [CODE] void setBalance(double amount); void withdraw(double amount); void deposit(double amount); double getBalance();[/CODE] Make an "Account" class and inherit both the other classes from it ;D | |
Re: Just out of curiousity, why do you need to do this in javascript? you'll use server side code to actually do the insertion, and since users can just turn js off you need to perform important data validation on the server .:D | |
Re: You can just set the padding to a relative value: [code] selector { padding-right: 15%; }[/code] You'll need to play around with the percentage a bit, depending on the size of the container and the size of the content, and whether relative positioning is used elsewhere. :D | |
Re: Pretty much all you have to do is implement the interface and define a compareTo method. Here's the interfaces code: [code] public interface Comparable<T> { public int compareTo(T o); } [/code] what SOS means is restrict the domain of your class to classes that implement this interface, like so: [code] … | |
Re: An html websites would give you the html side of things. If you want to do the server side part, look at some php/asp.net or other server side form tutorials. :D ![]() | |
Re: Its definitely possible using javascript. If you want to change the effect, if you are a code monkey you can just edit the library's code. Otherwise, I would advise you google the library's features, and if it doesn't let you change what you want, try a new library. :D (jquery's … | |
When I look at unanswered-threads::all, I see at least 10 posts by new members in Community intro. Its a great forum, but the priority of those questions being answered is lower that actual tech questions IMHO. I would just look at the unanswered posts in my subscribed forums, but the … | |
Re: You've got the js hooked up all right, its just that the image isn't in that <a> in the code of your site. If you move the image into it, you should get the desired effect. ;D | |
Re: what's your question? we're not just going to give you the code. Ask this in the web dev.ruby forum. ;D | |
Re: What code are you using to create the effect? | |
Make regex creation easier! Enter regex, test string, select from various function to run, then see the output. | |
Re: Would be good as a code snippet and maybe an article on codeproject. ;D |
The End.