Jump to content

mike_g

Members
  • Content Count

    48
  • Joined

  • Last visited

Community Reputation

0 Neutral

About mike_g

  • Rank
    Newbie

Previous Fields

  • Languages
    Java, Javascript, PHP

Contact Methods

  • Website URL
    http://
  • ICQ
    0
  1. No. every line had a big gap below it. Yeah removing the doctype sorted out the line spacing problem. IDK why I put it there; just ripped the top two lines from some other site since i never know what to put as the doctype and stuff. Cheers.
  2. Hi, I'm making a syntax highlighter. It can output to html, which creates quite a bit of bloat. To reduce the file size I am having a go at using XML. I'm not sure if i'm doing this right; havent really used xml before, but FF seems to display the content alright except for one thing. The line height seems to be too big for some reason. Heres a test page showing what I mean: <?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html> <head> <style type="text/css"> cod
  3. You can add a new line using \n in the string eg: <head><script type="text/javascript">function disp_alert(){alert("I am an alert box!!\nThis is a second line");}</script></head><body><input type="button" onclick="disp_alert()" value="Display alert box" /></body> You might want to have a variable that holds the text for the message box, and append each message to it followed by \n
  4. Thanks jesh. I bookmarked it for now. Might give it a try sometime.
  5. I thought that you could use an access database with PHP, or is that only MS SQL?If you cant do that is there any easy way to convert an access database to mysql?I'm asking this because I might have to add an access database to a website soon, and dont know ASP atm.
  6. I would not pay for it and, without meaning to sound harsh, I think you will have a hard time finding people that are. Theres a lot of good free software available. Your site looks nice though. Good luck with it.
  7. mike_g

    My new site

    Thanks for checking it out. Yeah the banner font is a little hard to read. I'll space out the letters a bit. I'll also be adding some stuff to the homepage. Cheers.I have a css problem as well in that when the window width is less than 800 px the content dissapears. I'm pretty sure that this is beacause I am centering the main content width a padding div set at 50% width, then giving the main content a negative margin. anyone know of a way to fix this?
  8. mike_g

    My new site

    Hey people. I have pretty much finished a new site thats basically somewhere hold some of the stuff I made.I would appreciate opinions on the design and layout of the site and how it could be improved. Also, if anyones on dialup could you let us know if the load times are bearable? I optimized most of the images with png out, but It might still be a bit image heavy.Anyway heres the url: http://grundez.googlepages.com/Index.htmlCheers.
  9. mike_g

    2D game

    You can even make a raycaster with it: http://www.3dtomb2.com/about.phpThough javascript is pretty slow for that kind of stuff.
  10. Thanks for the suggestions. A problem with onload in IE is that it gets itself stuck in an infinite loop, so it looks as if I'll still need a cookie. Chris, your method seems a better than my idea. Thanks.
  11. Well the link is not opened in a new tab or window, and using a referrer dident seem to do anything for me. Thanks for the suggestion tho. I think I may have to have a cookie that holds the last url, although it seems like a bit of a ugly hack. If anyone has a better idea let me know. Cheers.
  12. I'm trying to write a script that goes back to the last page, and reload its content. I havent been able to get it to work. Heres what I have: function ReturnToLastPage(){ setTimeout("window.location.reload()", 5000); history.back();} With this though the window never reloads :/ Anyone know how I can get this to work? Or if someone could tell me how to get the last pages url as a string that would be nice. I have been looking, but havent found a way to do this.
  13. nvm, I managed to fix it by removing the table.
  14. With a bit of research I found that IE6 treats table, thead, and tr elements as readonly as far as .innerHTML is concerned.So I dd what it says here and put the element in a <tbody>, but it still dosent work :)Heres the php that writes the section to the page: function DrawCart() { echo '<form>'; echo '<table>'; echo ' <thead><tr>'; echo ' <td id="carthead">'; echo ' Shopping Cart'; echo ' </td>'; echo ' </tr></thead>'; echo ' <tbody id="cartcontent">'; // CART CONTENT INSERTED HERE echo ' </tbody>'; echo '<
  15. This line of code works in FF, but gives an error in IE6: cart.innerHTML = cart.innerHTML + "soemtext"; Is there a portable way to get/set the inner HTML of an element?If not how could I make this work in IE?Cheers.
×
×
  • Create New...