Jump to content

UnfeelingAlloy

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by UnfeelingAlloy

  1. OK, so I'm trying to complete a new website. The address I'd like looked at is here: http://corpus-archidictus.com/temp.htm. For some reason it works just fine in FF (which is the browser I designed it in), but IE will not scroll the page, and an image map near the top displays incorrectly in IE as well. The code is nasty right now b/c I've been throwing stuff together, and there's still a couple other pages not made, but I'd really, really, really appreciate any help whatsoever on making this page cross-browser...thanks in advance.
  2. Indeed. The frameset section should go in the head part of the page, to tell the browser that it needs to divide up the window prior to applying the content, which would be in the body tag.So you'd need to have it something like this: <html> <head> <FRAMESET COLS="20%,80%"> <FRAME SRC="menu.htm" name=S> <FRAME SRC="main.htm" name=T> </FRAMESET> </head> <body bgcolor="#333333"> blahblahblah </body></html>
  3. I've found several simple scripts to copy text into the clipboard, but I'm wondering how it would be done for me to have several different selections on the page, and then you would click a little radio button beneath the selection, and then to click on the copy input down at the bottom of the page, and depending on which radio you had selected, that particular selection would be copied...How would I go about doing something like this? I would imagine it wouldn't be too overly difficult...
  4. <script language="JavaScript" type="text/javascript">var httpReq;function connect(){var statusURL;httpReq = new XMLHttpRequest();httpReq.onreadystatechange = getServerStatus;statusURL = "http://www.worldofwarcraft.com/realmstatus/index.html?"+(new Date()).getTime();httpReq.open("GET", statusURL, true);httpReq.send(null);}function getServerStatus(){if(httpReq.readyState == 4){ // COMPLETED(4) = the document has been completely loaded, successfully or unsuccessfully.if(httpReq.status == 200) { //200 is HTTP OKvar server = "Khadgar";server = server.replace(/\'/g, "'"); //strip out crapvar regex = new RegExp("(up|down)arrow.gif\" [^>]+><\\/td>\\s+<td [^>]+><b [^>]+>" + server); //regex to extract the statusvar response = httpReq.responseText; //the entire body of the pagevar status = regex.exec(response);document.write(server + " is: " );if(status[1] == "up"){// document.getElementById("status").src = "img/uparrow.gif";document.write("<img src='img/uparrow.gif'>"); }else if(status[1] == "down"){//document.getElementById("status").src = "img/downarrow.gif";document.write("<img src='img/downarrow.gif'>");}}} }</SCRIPT>onload="connect()";> OK, so this is what I have from that link Choco gave up there. So I've edited it to change the server to my server (Khadgar), and have changed the page that the script is searching to the US status page (since this script was made with the Europe page in mind). So now can someone tell me exactly how to go about implementing it? B/c I'm wondering if I put this is the head (and if so, what do I put in the body as the output of the script), or if I put this right in the body where I want it...Sorry for being dense. HTML is more my thing than Java, so I'm learning as I go.Anyone?
  5. A good idea, if it was a regular server, but see it's a World of Warcraft Game Server, and I'm wanting to rig my guild's site with a script to where they can just log on to the site and see if our server is up or if it's down for maintenence. I could really use some help on this one, if anyone has some time...
  6. You should be able to put this in whatever text link you have in the iframe: <a href="http://yourdestination.com" target="_top">Link Text</a> ^ That should work...
  7. Ya, that's exactly what I'm wanting to do. It's not my server or anything - what it is is a Blizzard server, and Blizzard has a Server Status page which lists whether servers are up or down. So I'm wanting to use the text of my server as an argument in an if statement, as Choco said. So I would need to have that in an iframe? I can't just tell the if to look on Blizzard's page and see if it can find an ihmtl line? Either way, I have NO idea at all of how to code that...would someone be able to give me a hand?
  8. What I'm wondering is if some sort of Java could be rigged to where the status of a server in World of Warcraft could be displayed upon a guild's website. I know that this won't work, but something like this is what I had in mind: <script language="JavaScript" type="text/javascript">if (World of Warcraft Community Site Realm Status Page has a certain string of text in their HTML up) { document.write('Image which would indicate that the realm is up'); } else { document.write('Image that would indicate that the realm is down'); }</script> I'm trying to be as specific as possible here - i just don't know the exact coding that this would require. I tried to get a popular PHP script to work and for some reason can't figure it out. So I wondering if this would work. The WoW Realm Status page has it set up in tables with seperate rows for each realm, so if I could copy the whole row when the server is up and paste it in the code as the if and the realm is up, and then have anything else be the realm is down, I think that might work...Make sense at all?
×
×
  • Create New...