|
Post by Streamstrider on Nov 6, 2011 0:52:26 GMT -8
What I was wanting to do is basically what the wormfade affiliate table does, but only concerning the fading. I want to be able to put affiliate banner codes into one of the sidetables on my forum, but instead of using a marquee vs static, just have them fading from one to another. Is it possible to do this?
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Nov 7, 2011 18:39:13 GMT -8
I guess it depends on how you want it laid out. Did you want just a single column going down or did you want two of them side by side? Example 1: Affiliate 1 | Affiliate 2 | Affiliate 3 | Affiliate 4 |
Example 2: Affiliate 1 | Affiliate 2 | Affiliate 3 | Affiliate 4 |
And then how many should be displayed at one time? Wormo is gonna need to know that.
|
|
|
Post by Streamstrider on Nov 7, 2011 19:51:27 GMT -8
2 Columns. 5 affiliates per column.
|
|
|
Post by Wormopolis on Nov 7, 2011 22:33:20 GMT -8
I will see if wormfade can be modded, but Im REALLY not interested in writing another one from scratch.
are you planing on having at least 10 affiliates in the list or is there going to be some sort of placeholder thing involved?
|
|
|
Post by Streamstrider on Nov 8, 2011 4:55:20 GMT -8
I plan on having at least ten. I already have way more than that. XD
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Nov 8, 2011 6:16:36 GMT -8
Wormo correct me if I'm wrong on this:
The current table is set up to create as many cells as are specified by the number of affiliates shown. If you added in the functionality for two variables:
NumberOfRows NumberOfColumns
Instead of the one. I think that would be the shortest work-around as opposed to re-writing the whole code. I'm no coding expert but if it works like I think it will work you should be able to get away with just adding about 12-15 lines of coding. Not promising that is correct though, you would know better than I.
Perhaps a quicker (and less code intensive) workaround would be instead of creating a td for each affiliate put them in a div then add the br tag so they file down the table.
<table> <tr> <td> <div>Aff 1</div><br/> <div>Aff 2</div><br/> <div>Aff 3</div><br/> <div>Aff 4</div><br/> <div>Aff 5</div><br/> </td> <td> <div>Aff 6</div><br/> <div>Aff 7</div><br/> <div>Aff 8</div><br/> <div>Aff 9</div><br/> <div>Aff 10</div><br/> </td> </tr> </table>
I'm not sure which one is better I'm just trying to put suggestions that might help you avoid a major rewrite of the code.
|
|
|
Post by Wormopolis on Nov 8, 2011 18:34:05 GMT -8
the problems with DIVS is the position:absolute had issues when I was developing it. thats why I went with a table. I could also use colspan to make sure the header/footer cells went all the way across without having to calculate widths.
adding in functionality of more rows wont be too daunting, but I need to make sure the variables stay true for later access by the fade function. each cell gets a timeout put on it for fading to the next image. too many and things might start to get bogged down. initially, every cell gets TWO affiliates put in. one on top of the other, and the fade is given a random countdown to begin fade. when an affiliate fades to 0, it gets pushed behind the other affiliate, gets a new image source from the list, and waits for the other affiliate to fade. they alternate back and forth like that infinitely.
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Nov 9, 2011 5:59:24 GMT -8
Okay. That helps me understand the coding better. It sounds like a bit of work but not as much as we originally thought. I noticed the positioning issue when I tried to center the affiliates last night after I read your post about doing so. Looked more right aligned to me than centered. I think I'll play around by setting it to position:relative and then see if I can use the CSS margin property to set them in place. I'll post results here.
|
|
|
Post by Wormopolis on Nov 9, 2011 20:36:10 GMT -8
I had to use position absolute to get the thumbnails to overlap each other.
|
|
|
Post by Wormopolis on Nov 12, 2011 16:10:06 GMT -8
getting closer...
|
|
|
Post by Streamstrider on Nov 12, 2011 16:21:58 GMT -8
I'm in no rush, Wormo, so take your time.
|
|
|
Post by Wormopolis on Nov 27, 2011 22:52:45 GMT -8
did you still want this?
|
|
|
Post by Streamstrider on Nov 28, 2011 20:27:48 GMT -8
Si! But only if you've already figured it out. I'm not completely sure where I'm going to use it, so if you need to focus on other things, don't worry about this one at the moment.
|
|
|
Post by Wormopolis on Nov 28, 2011 22:08:14 GMT -8
well it pretty much will do whatever rows and columns you want, BUT Im not sure how the bottom part will look if its too skinny.
|
|
|
Post by Streamstrider on Dec 2, 2011 19:15:23 GMT -8
We can just put in on hold for now. Once I figure out something, maybe we can put it to active use.
|
|