Jump to content

Search the Community

Showing results for tags 'Code'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








  1. I am getting problem with a search box when I coding it. My requirements are it should be pixel perfect. There are three elements, text-box, arrow, border. Please see My attachment. and send me the code what will help me to lot. FYI: I am new in web designing.. Thank you @khalil5172
  2. Hi all,Where can I find coding examples on border for video?Example: <div style="padding:10px;background:#000;webkit-border-radius: 20px;-moz-border-radius: 20px;border-radius: 20px;width:560px;margin:0 auto;overflow:hidden;"> <iframe src="http://www.youtube.com/embed/MOVIEID?fs=1&autoplay=1&loop=1&rel=0&border=0&modestbranding=1" width="560" height="315" frameborder="0"></iframe></div> in respect of color and style?ThanksRegardssatimis
  3. Looking for a code that's uninfected, preferably code that you can post using the Facebook script code tags. Does anyone have a script code for tagging all frinds in a post, if not then .... Just like all the rest of the auto tag scripts for Facebook on youtube they are not working. I have found one script that works but I can't post what I want, I am not allowed to tag the post that I want. I am only allowed to post what the creator wants me to tag. Make sense? Can you edit the script to allow me to post what I want then tag all my friends?
  4. Hi! My site's navigation looks and works pretty clean for computer use and viewing but when I pull it up on my iphone it's pretty sloppy.. I am looking for a way to code it for mobile devices so its a clean responsive look and user functionality isn't difficult to figure out.. Here is the site.. www.asamusic.us Thanks!!
  5. Please help me I am building a web-site for sending and receiving money and need to add a currency converter not the ones available on the Internet, how do I do the code?
  6. Hello! I am currently in the progress of building a map, using GPS data points. I have been gathering information about each specific point I plot using the GPS Device. When I export my work into Google Earth, I can click on a point and see a pop-up menu that displays the information gathered about that specific point. I am looking at possibly writing my own XSLT/XSL Template in order to display the information properly. Aside from internet research (Mostly here at W3 Schools), I have no training on XSL and XSLT. I've played around with it, hoping for blind luck, but to no avail. Does anyone have suggestions as far as learning tools, or where to get a solid understanding of what I need to know in order to convert database information into a formatted html table? Also, I need to incorporate thumbnail images in this pop-up menu, generally from the same file path, just different end folders. Any advice or suggestions would be much appreciated. Thank you!
  7. I want to make a page where on each **tags** :My page should look alike : http://www.missmalini.com/aamir-khan-2/Above page is coming from http://www.missmalini.com/celebrity-fan-pages/this are categories with **Tags** :I also know that the patten is likeBig Image is First ( **First** latest Post of resp. tag )... then 4 image with title are from **Second** post )and then only title after **sixth** post .. its means they have **divide latest 10-12 post** with this structure..2 } if u see on top ( above Ten Latest Aamir Khan Updates ) there is "**Aamir Khan Full Bio** " which is ***different*** for resp. **tags**.3 } If Scroll Down there is Photos and Videos of resp. celeb ( which is tags or may be category wise )Hence how i can do this ( means how i can make such Own Custom Page code ) can any one let me know.
  8. Is there anyone that write me a javascript code that will display a certain message based on what time of day it is and what day of the week it is. I run a radio stations website and they want to put up a schedule of their on-air staff and shows on their website.Here is a code i found that worked, but it's just time in general, not what day of the week. Also, how can I make it to get the time in a certain time zone? No message at the present timefunction show() {var nowhrs = new Date().getHours();var nowmins = new Date().getMinutes();var hrsmins = nowhrs + (nowmins/60); // decimals of an hourvar schedule = [['Message 1',[9],[18]], // times are expressed as hours + decimals of an hour, e.g. 30 minutes is .5 hours.['Message 2',[18],[21.5]],['Message 3',[19.5],[20.25]]]var themessage = "";for (var i =0; i = schedule[i][1]) && (hrsmins < schedule[i][2])) {themessage += schedule[i][0] + "";document.getElementById("mymessage").innerHTML = themessage;}}}
  9. Hello all,I have tried so many things to get this to work but to no avail, can someon eplease help me out here with a simple script for n XML steam feed.http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/v0002/?gameid=221380&format=xml OK NOW THE ISSUE IS:I have a blank webpage which I have placed the above link into, I simply want the contents of the XML feed from the link to appear in mypage.......How do I make the contents of that url appear on the same page??SO I NEED THE SMALL SCRIPT OR HTML CODE TO DO THISAlso I would like to have the background a certain colour and use a certain font like 12point arial with bold headings and lower case text.Can someone please provide me with the html to allow this XML feed to appear on my webpage with a different colour background, arial 12pt font inbold and lowercase____________________________________________________________________________I RECEIVED A REPLY TO THIS POST AND THEY ADDED THIS:It's a little hard to tell from what you wrote. But, I think what you are looking for is an AJAX script to pull in the XML,then CSS can take care of the formatting.Look up how to process a XMLHttpRequest in javascript (or another scripting language). That will let you put the XML file into an array. Then,you can use (javascript) document.write() to put the pieces on your page.______________________________________________________________________________SO this being said do I need a javascript code in the page to show the XML Feed with formatting, what would this code be, this is the magicalquestion :)Could someone please please help me..........With regardsMathew
  10. HiI'm kinda new to XML and coding so I dont know if this is possible...I have this XML made with Processing what it does is: It takes the feed from the webcam and when I press Space it samples color from 2 pixels in different possitions. It writes the XML like this: <?xml version="1.0" encoding="ISO-8859-1"?><COLORS><SHIRT>#959789</SHIRT><PANTS>#19100F</PANTS><SHIRT>#999486</SHIRT><PANTS>#19110D</PANTS><SHIRT>#939791</SHIRT><PANTS>#1D120F</PANTS></COLORS> So everytime I press Space it adds the Tags <SHIRT> and <PANTS>, this means that the XML is always updating What i need now is a HTML that reads the XML and puts colors in cells of a table and everytime there is a new color, it adds it to the table... Is there a way to do that? Please I've been trying this for the last 3 days with no success... Thank you
  11. Hi all - I have searched the forums, tutorials and the web and I cannot find a good answer to this. I find plenty of HTML code for many math symbols, but I am specifically looking for one pictured (the long line) Thanks in advance for any help!
  12. Ok. Sorry that the title was a bit confusing, but this is what I need. I have the Konami code currently working on my website. Here is what I want to happen: If you get the code wrong: I want an alert that states you got it wrong. If you get it right, a youtube video opens in lightbox or fancybox. If this is not possible, how do I simply direct the user to another page on my site? This is my site currently: http://webdesign.miad.edu/stimm/ This is my javascript/jquery code: <script type="text/javascript" src="scripts/jquery.js"></script><script type="text/javascript" src="scripts/konami-JS.js"></script> <script type="text/javascript">konami = new Konami()konami.code = function() {alert("You have entered the KONAMI CODE! You now have 30 lives. Kinda.")} konami.load()</script> The Konami code works (up, up, down, down, left, right, left, right, b, a, enter). It just doesn't do what I want yet.
  13. Hi, i'd like some feedback please, if its possible. I 've found this article ( http://webdesign.tutsplus.com/tutorials/complete-websites/create-a-dar k-clean-website-design-in-adobe-photoshop-free-psd/ ) that teaches how to design a website in photoshop. I can guess how is going to be the structure of the html and css in general, when turning this psd mock-up to an html document, but my main focus is on the coding process of banner/ slider area of the website, and i'd like to know which is the best or more efficient way to code it in some parts, like: the gradient background: is it better to code it with css or export it as an image-graph and add it as a background to a div [like background-image:url('image.jpeg') ]? NOTE that there are 3 gradients (step 8 of the article). the shadow effect: how can i make the shadow look like this? it does not extend to the full width of the slider and also has a different shape. Generally the shadow effect look like this http://www.w3schools...css3_box-shadow , but the one in the article looks totaly different. Finally about the slider and the logo: both look like they are standing on top/in front of the layout, is this has to do with the z-index property? both are are not placed in the same height as their sections, they are possitioned/go more 'downwards', how is better to do it? by using some margin or padding or maybe setting their positions (top, bottom, relative absolute ... )? Please note that i'm talking about the development process, when creating an html document (html & css) in dreamweaver or any other editor, NOT how to design the mock-up.
  14. Expectation of code: I would like it to take the number the customer selects and based on that number load a different page. So you load into index.php The options are 1 - 4. I am receiving the information into Variables. However, it's not changing the page. Here is the code for it to change the page. header('Location: driven' + $num + '.html');} Also is there a better way of breaking out of php code? <?phpif(isset($_POST['submit'])){echo "Submit button has been pressed"; ?><br /><?phpecho $num; ?><br /><?phpif ($num < 1){ $error="Invalid option"; echo $error;}else{ header('Location: driven' + $num + '.html');}}?> Notice all the <?php ?> ??
  15. Hey mates. I want to share this information with you all who may be having the same issue. On Windows my webpage background and images display well. but on linux/ubuntu i was unable to view the images on the web page. Finally it worked after i changed the image name to its correct case. Example: background-image : url('images/gradient1.png'); changed to background-image : url('images/Gradient1.png'); It applies to html too. Hence i believe its better to practise using correct case when dealing with links and image names.
  16. I have attached my sample website. In it how do i arrange multiple "div" and why do some break up at different screen sizes. Check my code and help me find my mistakes. index.html
  17. In the HTML tutorials, all images were added from a web location (img src="url"/>), when creating my new site, how do i add the images which are on my computer. Do I have to upload the images to a FTP location on the web first and then create the web pages? OR Should i create everything under one folder on my computer and then upload the entire folder to the web host?
  18. Good afternoon, I am currently writing codes to create a quiz implemented in (raw) Javascript for a university asignement. I already went on forums and found some codes. Now my quiz is working. However, I must also use JavaScript code that I wrote and I can't use any web authorong tool generated JavaScript .How can I now the codes I have used have not been generated by Dreamweaver or a software? Thank you in advance.Kinds, I used the following codes: <HEAD><script LANGUAGE="JavaScript">var ans = new Array;var done = new Array;var yourAns = new Array;var explainAnswer = new Array;var score = 0;ans[1] = "b";ans[2] = "b";ans[3] = "a";ans[4] = "c";ans[5] = "b";explainAnswer[1]="The reason why Answer 1 is Blah Blah Blah";explainAnswer[2]="The reason why Answer 2 is Blah Blah Blah";explainAnswer[3]="The reason why Answer 3 is Blah Blah Blah";explainAnswer[4]="The reason why Answer 4 is Blah Blah Blah";explainAnswer[5]="The reason why Answer 5 is Blah Blah Blah";function Engine(question, answer) {yourAns[question]=answer;}function Score(){var answerText = "How did you do?\n------------------------------------\n";for(i=1;i<=5;i++){ answerText=answerText+"\nQuestion :"+i+"\n"; if(ans!=yourAns){ answerText=answerText+"\nThe correct answer was "+ans+"\n"+explainAnswer+"\n"; } else{ answerText=answerText+" \nCorrect! \n"; score++; }}answerText=answerText+"\n\nYour total score is : "+score+"\n";//now score the useranswerText=answerText+"\nComment : ";if(score<=0){answerText=answerText+"You need to learn some more";}if(score>=1 && score <=2){answerText=answerText+"bit more practice";}if(score>=3 && score <=3){answerText=answerText+"doing ok";}if(score>4){answerText=answerText+"You are one hot java babe!";}alert(answerText);}// End --></script></HEAD><!-- STEP TWO: Copy this code into the BODY of your HTML document --><BODY><DIV ALIGN="CENTER"><h1>Java Quiz</h1><b>Test your knowledge of Java!</b><hr><FORM><b>1. What is the name of the Java mascot?</b><br><input type=radio name="q1" value="a" onClick="Engine(1, this.value)">a) Luke<br><input type=radio name="q1" value="b" onClick="Engine(1, this.value)"> Duke<br><input type=radio name="q1" value="c" onClick="Engine(1, this.value)">c) Nuke<br><input type=radio name="q1" value="d" onClick="Engine(1, this.value)">d) Sunny<p><b>2. Where is the best place to get Java software?</b><br><input type=radio name="q2" value="a" onClick="Engine(2, this.value)">a) From a can<br><input type=radio name="q2" value="b" onClick="Engine(2, this.value)"> From java.sun.com<br><input type=radio name="q2" value="c" onClick="Engine(2, this.value)">c) You have to buy it from Microsoft<br><input type=radio name="q2" value="d" onClick="Engine(2, this.value)">d) From your local Star Bucks<p><b>3. A 'for' loop in Java looks like this....</b><br><input type=radio name="q3" value="a" onClick="Engine(3, this.value)">a) for(int i=0;i<5;i++){}<br><input type=radio name="q3" value="b" onClick="Engine(3, this.value)"> for i=1 to 5 do<br><input type=radio name="q3" value="c" onClick="Engine(3, this.value)">c) repeat...until(i=5)<br><input type=radio name="q3" value="d" onClick="Engine(3, this.value)">d) FOR I:=5 DOWNTO 1 DO <p><b>4. Which platform can not run Java.</b><br><input type=radio name="q4" value="a" onClick="Engine(4, this.value)">Linux<br><input type=radio name="q4" value="b" onClick="Engine(4, this.value)">Windows NT<br><input type=radio name="q4" value="c" onClick="Engine(4, this.value)">Commodore 64<br><input type=radio name="q4" value="d" onClick="Engine(4, this.value)">Apple Mac<p><b>5. 'JMF' stands for: </b><br><input type=radio name="q5" value="a" onClick="Engine(5, this.value)">A pop group of the 90's who had the hit "Unbelievable"<br><input type=radio name="q5" value="b" onClick="Engine(5, this.value)">Java Media Framework<br><input type=radio name="q5" value="c" onClick="Engine(5, this.value)">Java Messaging Framework<br><input type=radio name="q5" value="d" onClick="Engine(5, this.value)">Java Meditation Forum<p><CENTER><input type=button onClick="Score()" value="Well... How did I do?"></CENTER></FORM></DIV>
  19. Hi I have continued a second page with a Popup Generator now (http://dl.dropbox.co...Untitled-2.html) but have come across a problem. I get no error but the link just won't open. Short Code: <!DOCTYPE html><head><script>/*Functions*/function editLink(){var lText= document.getElementById('linkText');var lURL= document.getElementById('linkURL');var lUL= lUL_value();var popH= document.getElementById('popH');var popW= document.getElementById('popW');var taValue= document.getElementById('taHTMLoutput');function lUL_value(){if (document.getElementById('uLine_yes').checked){ return "text-decoration:underline;";} else if (document.getElementById('uLine_no').checked){ return "text-decoration:none;";};};function changeHTML(){return "<a onClick="window.open("" + lURL.value + "","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=" + popW.value + ", height=" + popH.value + "");" style="" + lUL + "">" + lText.value + "</a>";};taValue.value= changeHTML();document.getElementById('outputP').innerHTML= "<a onClick="window.open("" + lURL.value + "","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=" + popW.value + ", height=" + popH.value + "");" style="" + lUL + "">" + lText.value + "</a>";}</script></head> <body><div id="uberContainer"><table width="100%"><tbody><tr><td><div id="mainContainer"><table align="center"><tr><td><form id="form1" onsubmit="return false;" style="border:1; border:#666"><legend><h3>Popup Details</h3></legend><div id="formContainer"><table><tr><td><label for="linkText">Link Text</label></td><td><input class="inputRight" id="linkText" autofocus="autofocus" placeholder="Mel Jones Photography Ltd." required size="40" type="text" autocomplete="on" /></td></tr> <tr><td><label for="linkURL">Link URL</label></td><td><input type="url" required class="inputRight" id="linkURL" placeholder="http://meljones.info/" autocomplete="on" size="40" /></td></tr><tr><td><label for="uLine">Underline</label></td><td><input id="uLine_yes" type="radio" name="uLine" value="yes" /> Yes <input id="uLine_no" type="radio" name="uLine" value="no" /> No</td></tr><tr><td><label for"linkCol">Colour</label></td><td><input id="linkCol" type="color" disabled /></td><tr><td><label for"popH">Height</label></td><td><input id="popH" placeholder="400" value="400" required type="number" /></td></tr><tr><td><label for"popW">Width</label></td><td><input id="popW" placeholder="600" value="600" required type="number" /></td></tr><tr><td></td><td><button onclick="editLink();">Amend Link!</button></tr></table></div></form></td><td><table><tr><td><h3>Output: </h3></td><td><p id="outputP"></p></td></tr><tr><td>HTML:</td><td><form id="formHTMLoutput"><textarea onClick="select_content('taHTMLoutput');" value="" id="taHTMLoutput"readonly placeholder="The HTML code for the Popup will appear here!"></textarea></form></td></tr></table></td></tr></table></div></td><td width="250px"></td></tr></tbody></table></div></body></html> Thanks
  • Create New...