Page 1 of 4 123 ... LastLast
Results 1 to 10 of 39

Thread: html image -- Had some extra time on my hands

  1. #1
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default html image -- Had some extra time on my hands

    http://ci-pro.com/misc/phptest/images/table.php
    Enjoy.

    Try saving that image




    And, yes, it takes forever to load.



    No real point to this... just... had extra time in a class. Heh.




    (more info- using php's gd functions, can use any image as the based... just using that right now.)

    Note: works in IE/FF, doesn't seem to in Safari.
    Last edited by djr33; 05-05-2006 at 07:23 AM.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Very clever, as an academic experiment, but it's pretty obvious why that's impractical in a real website
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Yeah... basically what I thought.


    the only advantage to it is that you can't right click on it and save, so it might confuse someone as to not being able to save it... til they think to do a screencap.
    But... yeah.
    It IS impossible to save as an image... that's kinda cool.

    And, heck, you could actually use this in a text only browsers.... but... you can assume those with them would have slower connections anyway, defeating the point.
    I know you use one, Twey... does it work?
    (or, perhaps tables are considered graphics anyway)

    Anyway... was fun


    Question... why doesn't it work in safari or IE 5, but does in mozilla/IE6+?
    Is there some extra thing that needs to be added to the table?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Try adding   inside each of the table cells.
    I know you use one, Twey... does it work?
    No, totally blank. Although whether that's to do with the lack of data inside the cells or something else, I don't know.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Does your text only browser support table cell colors, and, overall, tables as a whole?


    As for nbsp, that'll screw up the spacing... it'll make it a space wide/tall instead of one pixel.

    I guess I could use css to set the size of a space to 1px... but that seems a bit extreme... not sure if browsers will render it that small.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Does your text only browser support table cell colors, and, overall, tables as a whole?
    Yes.
    As for nbsp, that'll screw up the spacing... it'll make it a space wide/tall instead of one pixel.
    Not if you specify the size to be 1px by 1px using CSS.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Cool that it supports it... not like it's a big deal... but.. heck.. images in a browser without images... fun

    That css would also avoid needing the width=1 for each td and tr, so that would save transfer time. (I could code that into css by itself, but the nbsp; will solve two with one)

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Cool that it supports it... not like it's a big deal... but.. heck.. images in a browser without images... fun
    Yees... unfortunately, the smallest cell it can display is one character by one character, so it ends up being a bit of a pixellated image
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Haha. I bet

    The first time I did it, I had forgotten to set cellspacing to 0, so I got a weird perforated look. Kinda cool, really.

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Hehe, nice
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •