Jump to content

trinaryatom

Members
  • Content Count

    25
  • Joined

  • Last visited

Community Reputation

0 Neutral

About trinaryatom

  • Rank
    Newbie
  • Birthday 01/01/1988

Previous Fields

  • Languages
    HTML, CSS

Contact Methods

  • Website URL
    http://myweb.cableone.net/trinaryatom
  • ICQ
    0

Profile Information

  • Location
    ******, OK, USA
  1. Ah, well... dang.So if i may ask, what is the proper code to do a something like this. PHP?
  2. Looking for some JavaScript that can tell if a file or website is available.For example: if (URL exists) { document.write(<div> + "Content Box" + </div>) }else { document.write(<div> + "Unavailable" + </div>) } A real time example would be something like say an embed code from a website and having an alternate setup for when the website was down.
  3. Slightly different than before, but i need help figuring out whats wrong here. Its bothering me so much.I have the following code function displayCalander(){ if (window.XMLHttpRequest) {/* code for IE7+, Firefox, Chrome, Opera, Safari */ xmlhttp=new XMLHttpRequest(); } else {/* code for IE6, IE5 */ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.open("GET","xmldata/dates.xml",false); xmlhttp.send(); xmlDoc=xmlhttp.responseXML; //iMonth=7//Month //iEvent=1//Event //iDay=15//Day var now = new Date(); var curCMonth = now.getMonth() + 1; var curCDay = now.getDate(); var curCYear
  4. I am wondering if i can change this code. <events> <month> <day> <text>blah</text> <discrip>blah blah blah</discrip> </day> <day> <text>blah</text> <discrip>blah blah blah</discrip> </day> </month> <month> <day> <text>blah</text> <discrip>blah blah blah</discrip> </day> <day> <text>blah</text> <discrip>blah blah blah</discrip> </day> </month> <month> <day> <text>blah</text>
  5. trinaryatom

    XML Creator

    Just wondering where i can find something that will create a XML file of all the files in a folder.For example: If I have 200 images in a folder. I want to hit one button and create an XML that looks like this. <FOLDER> <IMAGE> <NAME> img00001.jpg </NAME> </IMAGE> <IMAGE> <NAME> img00002.jpg </NAME> </IMAGE>ectectectect x 195</FOLDER> I would prefer that i could click a button on my home computer to do this.Edit:It doesnt have to look exactly like that it can also be some like<FILE name="img00001.jpg"/><FILE name="i
  6. Apple devices are not programed to support the use of Flash.Documentation - http://www.apple.com/hotnews/thoughts-on-flash/Edit: If you don't want to read the whole thing. The answer is in the Conclusion paragraph.
  7. Another question has appeared.How do i get multiples of these XML scripts on one page without them breaking each other.For example:CD NavigatorandXML to HTMLboth on one page working.Edit: They seem to be working fine on separate parts of the page, but it just seems wrong.
  8. Found It!w3schools.com - Cd NavigaterI feel really dumb not seeing this before.Edit: What i learned: I didn't know you could do "if" statements without "Else" and everything about this post!
  9. I could try to do something like this. But i don't know how to do the "var AddStuff = (blah,blah,blah,blah)"Javascripti=-1 function updateAddI(){i+1var AddStuff { document.write("<tr><td>"); document.write(x[i].getElementsByTagName("ARTIST")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x[i].getElementsByTagName("TITLE")[0].childNodes[0].nodeValue); document.write("</td></tr>"); }document.getElementById("feedbox").firstChild.nodeValue = AddStuff;} HTML <body><div id="addtI"><input button updateAddI()><
  10. Thanks for the information. I don't know how i missed that.Anyway, upon reading that i have created the following code.This code only draws one at a time depending on what i equals and if i=0 then its the top, if i=1 its the next, and so on. This is perfect and is exactly what I'm going for. <script type="text/javascript"><script type="text/javascript">if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.open("GET","cd_catalog.xml",false)
  11. JavaScript from w3schools.com <html><body><script type="text/javascript">if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.open("GET","cd_catalog.xml",false);xmlhttp.send();xmlDoc=xmlhttp.responseXML; document.write("<table border='1'>");var x=xmlDoc.getElementsByTagName("CD");for (i=0;i<x.length;i++) { document.write("<tr><td>"); document.write(x[i].getElementsByTagName("ARTIST")[0].childNodes[0].nodeVal
  12. Does Light Box support a way to use embedded objects, like YouTube or Flash?Edit: For Example: Replace the IMG with the Object.
  13. Very Awesome! Thank you all for the help once again.
  14. Wow that seems to easy.Its not like an iFrame where the width and height have to be predetermined?That's the reason why i don't use iFrames.
  15. Its HTML that looks something like this. <div id="Box"> <div id="boxtop"> <div id="Title"> Title <div id="date"> Date </div> </div> <div id="textbody"> Text blah blah blah Text blah blah blah Text blah blah blah Text blah blah blah </div> </div> <div id="boxmid"> <div id="Title"> Title <div id="date"> Date </div> </div> <div id="textbody"> Text blah blah blah Text blah blah blah Text blah blah blah Text blah blah blah </div>
×
×
  • Create New...