Jump to content

king arthur

Members
  • Posts

    335
  • Joined

  • Last visited

    Never

Everything posted by king arthur

  1. You might find you need to apply some of those style attributes to the table cells themselves to get what you want. Also, try looking at it in different browsers as this is one area in which IE and Firefox have annoying differences!
  2. I don't see why it couldn't be done in PHP and Javscript. I guess I would use PHP to get the filenames and sizes, put them in an array for JS to read, JS then works out the total size and preloads each file in the array and can work out the percentage after each file. PHP might be needed to dynamically generate the status bar as there's not really anything in JS to do that unless you're thinking of using several predefined graphic images.
  3. Use an onblur event in the body tag of the window being closed or minimised.
  4. You can open a new browser window from the current one with javascript: [code] newWindow = window.open("yourURL", "yourwindowName") [/code] where yourURL is the address of the page you want opened, and yourwindowName is the object name. You can now address objects in the new window using newWindow.document.whatever... Does this help any?
  5. [!--quoteo(post=379112:date=Jun 1 2006, 05:27 PM:name=DaVuLf)--][div class=\'quotetop\']QUOTE(DaVuLf @ Jun 1 2006, 05:27 PM) [snapback]379112[/snapback][/div][div class=\'quotemain\'][!--quotec--] I noticed what he had added, which changed the way it worked, but I was wondeirng why. [/quote] Because the onclick event must return the value 'false' in order to cancel the submission. Without explicitly returning the value from your confirmation function, it just gets lost and the default value is returned from the event, which is "true".
  6. Why make your visitors wait for all the images to load? Better to let them see at least something, while the rest of the page loads. If you have image rollovers you need to preload them as you want them to appear instantly as the mouse moves over the element. You just do [code]on_image = new image; off_image = new image; on_image.src = "path/to/my/on_image.jpg" off_image.src = "path/to/my/off_image.jpg"[/code] Then in your image rollover event [code] onmouseover="document.mybutton.src=on_image.src" onmouseout="document.mybutton.src=off_image.src" [/code] ...for example. Preloading large images will leave visitors looking at a blank screen for a length of time, still if you want to do this the idea is the same.
  7. Just take it out and throw it away! You are already preloading the images in your javascript code inside your <head> section. I cannot see where Preload() is defined anyway?
  8. You are passing in a string value as the parameter and trying to use it as the object reference. You need to instead use [code]document.forms["yourformname"].elements[fieldname][/code] if you only have one form on the page you then "yourformname" can be 0. Or you could try [code]fieldObj = document.getElementById(fieldname) fieldObj.value = '2006'[/code] HTH.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.