Jump to content

programmer-in-training

Members
  • Posts

    60
  • Joined

  • Last visited

Everything posted by programmer-in-training

  1. I was hoping to have the sidebars width fixed in all circumstances.
  2. I can't seem to get tables to do it, either. My links push down the bottom of the table beyond the screen; they won't stay within or resize with the window.
  3. Well, I will resort to tables if there is no way to do it otherwise.CSS designers, the ball is in your park!
  4. I'm not sure If I'm communicating what I want properly. I'm want the edges (header, footer, sidebars) to stay fixed, never smaller than the browser and never larger. I don't want to body itself to scroll at all.Then, I want the content inside to act as a normal web page, scrolling etc.The best I've come up with has the whole page scrolling instead of just the content inside.Is this clear enough?
  5. It didn't quite work. I want to have the menu be 134px wide, the links 188px wide, the header 128px high, the footer 1em high, and stay that way.But more importantly, I need this arrangement to fill the available space at all times (so that the footer is always at the bottom, even if there's not enough text).I also need the content to scroll inside, with the menu, links, header and footer staying still.Is it possible? I don't know if I know enough. Is it possible to add/subtract CSS values, e.g. 100% - 128px - 1em?
  6. NCH Software's FTP programs are free and useful.I use Fling, because that automatically syncs my Web Dev folder with my website whenever I save a file.
  7. I can't seem to juggle the <div>s around properly. I'm looking for this structure:What HTML and CSS should I use? (I would like the menu, links, logo and footer to be fixed and the content to scroll.)
  8. I was recently reading up at http://www.safalra.com/web-design/ and had my views changed on uses of tables. Now I have a question -- I'm trying to stick to the XHTML Transitional DTD, but I don't know how to design the layout with <div>s. The catch is, I want the logo and footer always visible, i.e. the body doesn't scroll but the content does. How do I set up <div>s to do this? If I include the <!DOCTYPE>, the width and height 100%'s don't seem to work -- the <div>s just shrink. Logo {Width: 100%; Height: 128px} Menu {Width: 134px; Height: 100%} Content {Width: 100%; Height: 100%} Links {Height: 100%} Footer {Width: 100%; Height: 1em} Do the 100%'s fill extra space, or force more? I.e, does 134px + 100% = the page width, or 134px + 100% = page width + 134px?
  9. I just started on a small site, www.schoolsareforfish.net. The sidebar works perfectly in FireFox 3 (which I was using while writing), and decently in FF 2, but horrible in IE. The menu is JS-driven. It flickers because every millisecond (read: as fast as the browser can calculate) it recalculates and completely rewrites the innerHTML of the sidebar <td>. I'm not sure how to go about fixing this.Also, the bubbles don't appear for some reason; the z-index is fine, but they won't show. And the water stays at the top and grows longer, looking rather silly!In Opera, the water starts 2x too high and moves 2x too slowly.Lastly, I haven't figured out how to preload images yet, so that would be invaluable to know.Well, I'm just a bundle of problems! But i would sure appreciate some hints. Thanks!EDIT: The title has a misspelling.
  10. It won't let me run JS functions contained in the main site, if I'm at the blogspot site.
  11. Well, each page on my site has a JS file referenced within it. I would like to reference the same JS file at "my blog".blogspot.com.
  12. Great! I would have thought that you could assign strings as well, because you assign strings in HTML.
  13. I'm flummoxed!I have this code to loop through all the links on my page (and eventually add popup notices): for (var i = 0; i < document.getElementsByTagName("a").length; i ++) {with (document.getElementsByTagName("a")[i]) {onmouseover = "alert('Test');";}} The href and style properties works, but event properties seem to make no difference to to behavior of the web page.What did I do wrong?
  14. I tried DOMDocument and SimpleXML with PHP 5, and I think from the errors that they aren't supported. Globat's computers are non-windows.
  15. Fixed! I had to use ob_start() and ob_flush(): <?phpob_start();$parser = xml_parser_create();$getit = 0;function start($parser, $element_name, $element_attrs) {global $getit;if ($element_name == "DOWNLOAD_MIRROR1") {$getit = 1;}} function stop($parser, $element_name) {}function char($parser, $data) {global $getit;if ($getit == 1) {header("location:$data"); ob_flush();}}xml_set_element_handler($parser, "start", "stop");xml_set_character_data_handler($parser, "char");$fp = fopen("http://export.giveawayoftheday.com/index.xml", "r");while ($data = fread($fp,4096)) {xml_parse($parser, $data,feof($fp));}xml_parser_free($parser);?> Thank you for all your help and support!
  16. XML DOM and SimpleXML don't seem to be supported.I used this: <?php$parser = xml_parser_create();$getit = 0;function start($parser, $element_name, $element_attrs) {global $getit;if ($element_name == "DOWNLOAD_MIRROR1") {$getit = 1;}} function stop($parser, $element_name) {}function char($parser, $data) {global $getit;if ($getit == 1) {header("location:$data");}}xml_set_element_handler($parser, "start", "stop");xml_set_character_data_handler($parser, "char");$fp = fopen("http://export.giveawayoftheday.com/index.xml","r");while ($data = fread($fp,4096)) { xml_parse($parser,$data,feof($fp)) or die (sprintf("XML Error: %s at line %d", xml_error_string(xml_get_error_code($parser)), xml_get_current_line_number($parser)));}xml_parser_free($parser);?> This works, all except for the redirection part. It does nothing. How can i fix it?
  17. Ha! I just asked them and they said I need to change the extensions to php5! Now I'll try it.I get this error now:
  18. I don't know how to upgrade. I'm getting service from Globat.I wrote it in ASP.NET and it works like a charm, but I can't do ASP with Globat: <%@ Page Language="VB" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script runat="server"> Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Dim Doc As New System.Xml.XmlDocument Doc.Load("http://export.giveawayoftheday.com/index.xml") Response.Redirect(Doc.SelectSingleNode("/items/item/download_mirror1").InnerText, True) End Sub</script>
  19. From using comments, I think this line causes the trouble: $mirror1[] = $item->getElementsByTagName('download_mirror1')->item(0)->nodeValue;
  20. This is my entire file: <?php $dom = new DOMDocument; $dom->load('http://schoolsareforfish.net/index.xml'); $items = $dom->getElementsByTagName('item'); foreach($items as $item){ $mirror1[] = $item->getElementsByTagName('download_mirror1')->item(0)->nodeValue; } print_r($mirror1);?> Nothing happens. (How can I debug PHP? Either things work or nothing happens at all.)
×
×
  • Create New...