How do I get code to access the images at the URL given?Array Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Romulo NF
    New Member
    • Nov 2006
    • 54

    #16
    Originally posted by tpgames
    It doesn't show the entire image either. It only shows a tiny corner.

    5.html
    sure it will not work man... look at the code

    Code:
    <style>
    
    #bgHolder {height:12px; width:12px; display:block; overflow:hidden;}
    
    </style>
    
    <body>
    
    <div id="bgHolder" width="200" height="200">
    you are trying to change the size of the div by putting attributes on the tag while the css i´ve made was to show images of 12px with overflow! (because i did the example using small arrow images)
    so... change the CSS not the tag div!

    and second
    whats wrong with the old loop?

    Code:
    imgName = new Array()
    for (x=0; x<=4; x++) {
    imgName[x] = x
    }
    just do that and you dont have to write one zillion times!

    Comment

    • Romulo NF
      New Member
      • Nov 2006
      • 54

      #17
      completing the last post...
      the ideia of using one array at first time was because i thought you had images with different names and etc...

      if you are going to use numbers instead of names, you don´t even gonna need the array!!

      if you already do the loop to set the value of the array[x] you can instead get that x from the loop and change the images without the array

      Comment

      • tpgames
        Contributor
        • Jan 2007
        • 783

        #18
        Thanks! That should work. I've not learned the ins and outs of "div" tags. When I've tried using them in the past, I got a nightmare of a page. LOL So stuck to simple tables, tr, td ect. tags. I'm also still learning how to use CSS for tables and all. Just learning this.

        Comment

        • tpgames
          Contributor
          • Jan 2007
          • 783

          #19
          Just tested it. Everything works well. Thanks a lot! I greatly appreciate it. :>)

          Comment

          Working...