Jump to content
xisto Community

SystemWisdom

Members
  • Content Count

    118
  • Joined

  • Last visited

Everything posted by SystemWisdom

  1. Go to [bootdisk.com and DL the Windows 98 or Windows ME bootdisk (or WinXP bootdisk) and make a bootable floppy disk.. then insert it and restart your computer.. Once your PC starts from the bootdisk, you can select an option to start the computer with CD Rom support, and then from there you can use Format, FDisk, etc.. Once you have formatted, boot onto the floppy again, start PC with CD Rom Support and start the setup process from your CD Rom.. I hope that helps!
  2. I don't think you can do that using phpMyAdmin, or even SQL for that matter, but you could write a PHP script to do that for ya... Make a query like:Select ID from <table> order by IDthen use a while/for loop to iterate through the results, and update each row with a new number for the ID.. you could use a PHP variable to track the current ID number, and increment it with each loop...Update <table> set ID=???Should work.. Although I have never tried manually updating an auto_increment field.. come to think of it, it seems pointless to adjust it, since it is dealt with internally anyway, and the actual value should never affect your script...If that doesn't work, and you still need to sort them, try adding another field to the DB table, like a sort-order field..
  3. Yes indeed, we all need good tips on driving more effeciently!!One thing I know of, is to keep a steady foot on the gas pedal.. Meaning once you are at the speed you want to drive at, try to find the the right amount of gas to keep you at that speed, without having to release the pedal often..An example of that would be stepping on the gas a little, then releasing, then step on gas again, then release again, etc.. that is an ineffecient way to maintain speed, so instead try to find the right spot and keep the gas there...One good trick for that is to use crusie-control whenever you can (if your car has it), since cruise-control maintains your speed without alot of play in the gas usage..Anyway, that's my tip, hope you guys have more!!
  4. Yep, you could probably use VC++ for alot of the games out there today.. most (if not all) 3D games use either OpenGL (Open Graphics Language) or MS DirectX Suite, and both of those have APIs written in C++. DirectX is a MS only API, but OGL works on many OSs.DirectX is nice to learn because XBOX uses DirectX for its games, but OGL is very good to know as well (bit more complicated API tho).. Both are put to use in PC games, but as for the PS2, I am not sure what language they use, I think they have a specific language just for the hardware of the PS2..Either way, C++ would be the base language of choice, and maybe create different rendering DLLs for both OGL and DX that would allow your program to work with games using either API...
  5. Haha! That's pretty neat!! But wouldn't it be hard to target a missile in flight? Especially when on a moving plane.. The laser might serve a more useful purpose targetting missile still attached to enemy aircraft! That way, we can use there own missiles against them, and save ours!! Target and destroy a missile attached to the wing of an enemy fighter, and bye-bye enemy fighter!! lol(When I first read the topic title, I thought maybe they had come close to making a laser light saber! that woulda been neat!)
  6. You should use single-quotes when outputting text and HTML for 2 reasons: Your HTML may then contain normal double-quotes without requiring the slashes that make it look ugly.. Ex: '<table border="0">' instead of "<table border=\"0\">" By using double-quotes you are telling PHP to invoke the string parser, which looks for variables and such inside strings, but by using single-quotes you avoid the overhead of the string-parser in PHP... this can decrease your scripts execution time.. Only downfall is that you have to end your strings to add variables.. Ex: '<table border="'.$BorderWidth.'">' instead of "<table border=\"$BorderWidth\">" I hope you understood that, and I hope it helps!
  7. Well, there are 2 possibilities of what you're looking for.. the first I am guessing is that you want to have the text in a hidden input type, and sent to the server with the form.. and for that you simply add the following inside your form tags: <input type="hidden" name="myHiddenData" value="Ba Salam Shoma Davat Shod Be sorat Majani az Service haye AntiVirus Farsi Estefade konid. Baraye in manzor az link zer sabte nam konid : http://forum.irvirus.com/register.php?s=&action=signup Baraye Morajeye be degar service haye site az link haye zer komak begirid : http://forums.xisto.com/no_longer_exists/'>http://http://forums.xisto.com/no_longer_exists/ http://forums.xisto.com/no_longer_exists/ /irvirus.org; />Or, you want to hide that textarea from the view of your visitors, as in: <div style="display:none;"><textarea rows="2" name="hidden" cols="20">Ba SalamShoma Davat Shod Be sorat Majani az Service haye AntiVirus Farsi Estefade konid .Baraye in manzor az link zer sabte nam konid :http://forum.irvirus.com/register.php?s=&action=signupBaraye Morajeye be degar service haye site az link haye zer komak begirid :http:// The second method works great, because you can then write a javascript to change the display and have it appear instantly on screen at the click of a button! Anyway, I hope that helps..
  8. I think what you are looking for is window.parent.. it sounds like you have a frameset and the two contained frames want to access each other?
  9. I have never used a site-builder to make a complete site.. I started off learning raw HTML, then JS, then CSS, etc.. and worked my way up using only Notepad (I use Crimson Editor now though, great text editor!) and eventually I was proficient with the raw code. One day I tried using DreamWeaver and found it pointless because I had to learn a whole new program to make what I already knew how to make! lol Ever since then, I haven't been bothered to learn some specialized IDE just to make websites.. Plus, most companies (even if they are working with IDEs) want you to know and understand the code that the IDE spits out, so any neccessary changes can be made by hand..
  10. That's a good point, it would be very hard to balance the game-play with so many races, but if you're up to it, then it would be possible... However, players may not like that idea much, considering they would have alot to learn before chosing the race that is right for them.. Anyway, you race ideas are good though... It is at the very bottom of his signature: TotalWar Anyway, I like your idea with the Galaxy map, it is pretty neat! You seem to have some good ideas already!
  11. I agree with PHP being better, as I have developed several sites using ASP (including a corporate intranet), and all I can say is that there are so many PHP modules out there that you have a greater variety of built-in functions for use when you're scripting PHP.. With ASP it seems I had to reinvent the wheel so many times it got boring real fast...
  12. I would have to agree with PC games being better.. Just look at Counter-Strike (and all the other HL mods), and Quake, and UT, etc... The fact that you can modify these games inside & out (like making new maps, plugins, models, sounds, etc..) just adds so much more possibilities to the PC games..Plus it is sooo much easier to aim at an opponent with a mouse then an analog controller (IMHO).. I have CS on Xbox and I don't play it for that reason!Not to mention the fact that controllers are so limited in the buttons they have, where as with a standard 101-key keyboard you have, well, 101 keys! You can even type messages to other people in online games on the PC, it is like a game chat-room.. okay, so I went too far there, but..And I hate to repeat what others have said already so I will leave it at that! That's my opinion anyway, don't hunt me down in CS if you don't agree..
  13. You should really check out Brain Jar.. Click the Home menu, then go down the menu to Customize and select one of the themes.. You'll notice that the theme changes completely including background images... This is all done with seperate CSS style sheets for each theme, and simply changed to point to a different style sheet for each theme.. The site even has alot of tutorials including how to change your sites theme using CSS (pure client-side themes).. Anyway, I hope that helps!
  14. I use HLSW all the time for CS, and it is the first place I go when I want to unban someone.. it works fine for me, I have always used it.. I can add bans, list bans and remove bans!In fact, I just checked it right now, and I have 52 bans listed!! -_-Maybe you are using a different game other than CS?
  15. Well, I have never used DreamWeaver before, nor I have I ever used any WYSIWYG Editor for my HTML/JS/CSS/Etc.. But I did a search on "DreamWeaver Image Swap" and this is an example I found: <HEAD> <TITLE>Menu</TITLE> <script language="JavaScript"> <!-- function MM_preloadImages() { //v1.2 if (document.images) { var imgFiles = MM_preloadImages.arguments; var preloadArray = new Array(); for (var i=0; i<imgFiles.length; i++) { preloadArray[i] = new Image; preloadArray[i].src = imgFiles[i]; } } } function MM_swapImage() { //v1.2 var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData; for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) { objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1]; if ((objStr.indexOf('document.layers[')==0 && document.layers==null) || (objStr.indexOf('document.all[') ==0 && document.all ==null)) objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length); obj = eval(objStr); if (obj != null) { swapArray[j++] = obj; swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j]; obj.src = MM_swapImage.arguments[i+2]; } } document.MM_swapImgData = swapArray; //used for restore } function MM_swapImgRestore() { //v1.2 if (document.MM_swapImgData != null) for (var i=0; i<(document.MM_swapImgData.length-1); i+=2) document.MM_swapImgData[i].src = document.MM_swapImgData[i+1]; } //--> </SCRIPT> </HEAD> <BODY BGCOLOR="#ffffff" TEXT="#000000" LINK="#3366ff" VLINK="#003399" ALINK="#0000ff"> <!-- #BeginBehavior MM_swapImage20 --> <script language='JavaScript'> MM_preloadImages('graphics/buttons/english_home_yellow.jpg'); MM_preloadImages('graphics/buttons/courses_yellow.jpg'); ... and so on </SCRIPT> <A href="index.html" target="_top" onMouseOver="MM_swapImage('document.home','document.home','graphics/buttons/english_home_yellow.jpg','MM_swapImage1')" onMouseOut="MM_swapImgRestore()"><IMG ALIGN=Top SRC="graphics/buttons/english_home_white.jpg" BORDER="0" WIDTH="110" HEIGHT="20" ALT= "Return to the English Home Page" name="home"></A></BODY></HTML> Looking at that, I would have to argue that mine is alot different (and simpler).. Is there any other Image Swap code DreamWeaver produces? Either way, I like my method better, it is cleaner and easier to read/understand.. not to mention alot shorter in code... Anyway, I hope you liked my tutorial!!
  16. Tutorial: Image Rollovers w/ Javascript, by Rob J. Secord, B.Sc. (SystemWisdom) See a working Sample of this Script! Download a ZIP containing all working files in this tutorial! Note: If you are not interested in reading this entire tutorial and/or have a basic understanding of the underlying concepts, you may safely skip to the Implementation section to get the code! Description: A Dynamic Image Rollover Script tested to work in 4 major internet browsers: MSIE, FireFox, Netscape and Opera. Using only Javascript combined with regular HTML Images (<img src="...">) we will create a Dynamic Write-Once, Use-Anywhere Image Rollover script with support for multiple directories. Since Image Rollovers can be achieved in many different ways, there are other methods that you may find to be more suitable for your situation. Some very good examples (though quite different from this one) can be found right here on Xisto Forums, such as this one by rvovk which uses CSS. The beauty of my proposed method is in the Write-Once, Use-Anywhere approach, so as to reduce the amount of extra code required with each extra image-rollover, when used multiple times. Intended Audience: Beginner to Intermediate Web Developers. Assumed knowledge: -- HTML Images -- Some Javascript Theory: We will start by creating a single directory to hold all of our images on our web server. We will call this the 'images' folder for the rest of this tutorial. Within this directory you may place all of your images and/or sub-folders with more images. Next we create a JS File to hold our Javascript code which makes the Rollover effect. We only need the one script for every possible image rollover in our site. Lastly, we combine them both into an HTML file for use! To demonstrate the file structure, imagine the following sample: -- index.html -- rollover.js -- images ????[/tab]+--- sub_dir1 ????|????|-------- Image1.gif ????|????|-------- Image1_.gif ????| ????+--- sub_dir2 ????|????|-------- Image2.gif ????|????|-------- Image2_.gif ????| ????|--- Image3.gif ????|--- Image3_.gif ????|--- Image4.gif [tab]|--- Image4_.gif The Bold entries are Folders, and the Italic entries are Files. Now, imagine those are the real file and folder names, as I will use some of those names in examples for the rest of this tutorial. Implementation: Part 1 Start off by creating an 'images' folder for your web-site, and place within it a few Images and maybe even a sub-folder with more images. The important part of this step is the Name of the Images. Since an Image-Rollover Effect involves switching from 1 image to another, we will need 2 images for each Rollover Effect. Looking at the Sample File Structure above, you will notice that each image has a second image of the same name, but with a trailing underscore '_'. The image pairs with the same name go together to perform the Image Rollover, and could be named anything you want. The only 2 rules in naming your Rollover Images are: Both images contain the same name. The second image has a trailing underscore. The first image (without the underscore) will be the default display image and when the user rolls the mouse over the image, it will change to the second image (with the underscore). This will be performed by the Javascipt in the next part of this tutorial. Part 2 Next we need to create the Javascript file which will be used to perform the Image Rollover. I will begin by showing the completed source code and then explain it afterward: File = rollover.js // Gets an Images Filename without the path and extension.function FileName( szFile, iTrim ){ return szFile.substring(szFile.lastIndexOf("/") + 1, szFile.length - iTrim);}// Image Mouse Over/Out Effectsfunction MEffect( oEvent, szDir ){ var oTarget; if( oEvent.srcElement ) oTarget = oEvent.srcElement; else if( oEvent.target ) oTarget = oEvent.target; switch( oEvent.type ) { case "mouseover": oTarget.src = szDir + "/" + FileName(oTarget.src, 4) + "_.gif"; break; case "mouseout": oTarget.src = szDir + "/" + FileName(oTarget.src, 5) + ".gif"; break; }} First of all, you'll notice that it is small! Consisting of only 2 simple functions which could be used for all of your Image Rollovers for your entire site! This first function simply returns the name of the file without the path and extension (and also the underscore if it is there, which is determined by the size of the iTrim variable. More on that later. The second function is the bulk of the Image Rollover code. It expects 2 parameters to be passed to it, and they are: oEvent - This is the Event that is caught by Javascript, and contains details about the type and target of the event. szDir - This is a string that contains a relative path to the Images used for the current Rollover. First, we need to find the Target of the event (in this case it would be an HTML IMG Object which the user has moved their mouse over/out). Some browsers recognize the built-in 'srcElement' attribute of the HTML IMG Object, where others recognize the built-in 'target' attibute. We determine which to use by testing the attribute in a regular IF expression, as seen in the code above. Now that we have our Target IMG Object, we can then find the Type of the event (in our case we will want to watch for the "mouseover" and "mouseout" events), and with a switch statement we can determine which event has occured. Example: // [...] switch( oEvent.type ) { case "mouseover": // [...] break; case "mouseout": // [...] break; } Now, to actually change the Image for the Rollover effect, we will again use our Target IMG Object to find the current 'src' attribute (<img src="which is this part">) for the image, and change it to point to the new Rolled-Over/Out image.Example: oTarget.src = szDir + "/" + FileName(oTarget.src, 4) + "_.gif"; We pass the 'oTarget.src' variable to the FileName() function to extract the Filename without the path and extension, and rebuild the string to include the relative path to the new image, and the extension containing the underscore (or without the underscore for the rollout effect). Now, since we know which event we are coding within (either "mouseover" or "mouseout"), we will know how much of the extension to trim. If the event is "mouseover" then we know that the current image filename does NOT include an underscore, so we only trim the last 4 characters of the extension (namely ".gif"). This is the 4 you see in the FileName() function just above. However, if we are coding in the "mouseout" function, then we know that the current image filename DOES contain the underscore, and we must then pass 5 to the FileName() function to tell it to trim the last 5 characters from the extension (namely "_.gif"). Once we have the filename all alone, we can rebuild it with the new relative path (the 'szDir' parameter) along with the underscore and extension (or just the extension). Once the new Image Filename string is built, we simple assign it to the 'oTarget.src' variable of the current IMG Object, and voila! The image has changed! Part 3 Finally, we create our webpage where we will use the Image Rollover effects on our images, and again I will show the completed code and explain it afterwards: File = index.html <html><head><script language="javascript" src="rollover.js"></script></head><body><img src="images/sub_dir1/Image1.gif" onmouseover="MEffect(event, 'images/sub_dir1')" onmouseout="MEffect(event, 'images/sub_dir1')" /><img src="images/sub_dir2/Image2.gif" onmouseover="MEffect(event, 'images/sub_dir2')" onmouseout="MEffect(event, 'images/sub_dir2')" /><img src="images/Image3.gif" onmouseover="MEffect(event, 'images')" onmouseout="MEffect(event, 'images')" /><img src="images/Image4.gif" onmouseover="MEffect(event, 'images')" onmouseout="MEffect(event, 'images')" /></body></html> First we include our 'rollover.js' file to have access to the Image Rollover functions. Next we create our HTML IMG tag pointing to the default image, as in: <img src="images/sub_dir1/Image1.gif" /> Finally, we add 2 event handlers to the image tag, one for the "mouseover" event, and one for the "mouseout" event. The event handlers will be the same function, the 'MEffect()' function from our 'rollover.js' file. The first event looks like: onmouseover="MEffect(event, 'images/sub_dir1')" 'onmouseover' is a built-in attribute which calls a user-defined function when the user passes the mouse over the object. We tell it to call out 'MEffect()' function, passing it 2 parameters. The first one is another built-in keyword that specifies the Event Details of the current event. We used this to find the Event Type and Target in the function. Lastly, we pass the Image path to the new image. Looking at the final HTML IMG tag we have: <img src="images/sub_dir1/Image1.gif" onmouseover="MEffect(event, 'images/sub_dir1')" onmouseout="MEffect(event, 'images/sub_dir1')" /> And from the complete example above you will notice that there are many images all using the same image-rollover function! Putting it all together, we have: File = index.html <html><head><script language="javascript" src="rollover.js"></script></head><body><img src="images/sub_dir1/Image1.gif" onmouseover="MEffect(event, 'images/sub_dir1')" onmouseout="MEffect(event, 'images/sub_dir1')" /><img src="images/sub_dir2/Image2.gif" onmouseover="MEffect(event, 'images/sub_dir2')" onmouseout="MEffect(event, 'images/sub_dir2')" /><img src="images/Image3.gif" onmouseover="MEffect(event, 'images')" onmouseout="MEffect(event, 'images')" /><img src="images/Image4.gif" onmouseover="MEffect(event, 'images')" onmouseout="MEffect(event, 'images')" /></body></html> File = rollover.js (Some stuff added) // Gets an Images Filename without the path and extension.function FileName( szFile, iTrim ){ return szFile.substring(szFile.lastIndexOf("/") + 1, szFile.length - iTrim);}// Image Mouse Over/Out Effectsfunction MEffect( oEvent, szDir ){ var oTarget; if( oEvent.srcElement ) oTarget = oEvent.srcElement; else if( oEvent.target ) oTarget = oEvent.target; switch( oEvent.type ) { case "mouseover": oTarget.src = szDir + "/" + FileName(oTarget.src, 4) + "_.gif"; oTarget.style.cursor = 'pointer'; break; case "mouseout": oTarget.src = szDir + "/" + FileName(oTarget.src, 5) + ".gif"; oTarget.style.cursor = 'default'; break; } window.status = '';} TIP: Extending the rollover is easy, try adding a 3rd parameter to the MEffect() function that contains a string for the window.status attribute! Conclusion: Well, I hope that you have learned something from this tutorial, and maybe even use such a rollover effect in your web sites! Please feel free to comment on this tutorial, if you noticed anything wrong or out of place in this tutorial, please don't hesitate to mention it! I am interested in all feedback really, I'm curious about what you think of my writing, tutorial, methods used, code, etc.. Thanks! See a working Sample of this Script! Download a ZIP containing all working files in this tutorial!
  17. Make sure you have NO whitespace before your <?php tag, as that whitespace will cause PHP to start outputting to the browser, which in turn causes the default headers to be sent... Also, you should specify the full URL to the file to redirect to.. This quote is from PHP.net on the subject: I hope that helps!!
  18. I use Crimson Editor. I have been using for a long time now and I love it!! I have been using it with many different languages as it has Syntax Highlighting support for about 100 different languages. And it allows for custom tools like compilers to be linked directly to Crimson Editor. It even captures output too! Not to mention FTP Editting options, so you don't need to keep 2 copies of your application.. Anyway, check it out, it is worth it! (it is free!)
  19. Nice Idea you have here!! Even free services hold great potential for profit, provided that they reach alot of consumers (marketing).Anyway, I would love to help where I can, I have filled out an application on your website outlining my qualifications.
  20. I kinda think J.K. Rowling will kill off Harry Potter in the last book. This is simply because of the fact that, if Harry lives past the seventh (and final) book, then Harry Potter fans all over the world will continuously hound J.K. Rowling to write more books about Harry in his years after Hogwarts.I personally would be one of those hounds! ;)However, I *hope* that is not the case, as I would love to read more about Harry Potter, seven books just isn't enough for the marvelous wizarding world Rowling has created!I have also heard of other books related to Harry Potter that Rowling has written (for charities), like the books that Harry actually reads in Hogwarts. I think (if memory serves me correctly) they were:Quidditch through the AgesMagical Creatures and Where to find themI think that was all though, please correct me if I am wrong...
  21. Well, you can start by making a regular text file, and just rename the extension to .PHP that's all!! Then you could add HTML/JavaScript/CSS and all that good stuff for the client side.. It will still be valid PHP file, but no PHP code exists so no PHP Server-Side Processing takes place.. From there, you can start adding your PHP scripts to the start of the file (or in the middle, or bottom) and upload it to your server.. Just call the page from the URL bar to execute it! Check out this tutorial for Learning PHP from W3 Schools.. Very good start: http://www.w3schools.com/php/default.asp I hope that helps!
  22. You should check out 'Docking', it requires no code at all, just proper placement of controls within docked panels.Docking allows you to 'Float' controls to the Top, Bottom, Left, Right or Fill, and when used together, you could have a control float to the Top-Right of your application while it resizes...Docking is usually done by adding a panel control (or some other containment control) to your form, and then specify the Dock position in the Properties Window of VC++ for that control.I hope that helps!
  23. Auto-increment only works for insert statements, as it gives the next row a new ID number, but all previous rows will remain unaffected.He wants to update an existing row (via code) and increment any one of the columns in it, thus the simple update statement I posted above would work fine for this purpose...
  24. What you are trying to achieve can be done in a single SQL statement without the need to return any records... In fact, 1 simple update statement like: UPDATE MyTable SET MyColumn=MyColumn+1 Where MyID=123 Put that in a string and pass it to MySQL... I hope that helps!
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.