Tweak

InsaneJournal

Tweak says, "Let's hear it for the boy!"

Username: 
Password:    
Remember Me
  • Create Account
  • IJ Login
  • OpenID Login
Search by : 
  • View
    • Create Account
    • IJ Login
    • OpenID Login
  • Journal
    • Post
    • Edit Entries
    • Customize Journal
    • Comment Settings
    • Recent Comments
    • Manage Tags
  • Account
    • Manage Account
    • Viewing Options
    • Manage Profile
    • Manage Notifications
    • Manage Pictures
    • Manage Schools
    • Account Status
  • Friends
    • Edit Friends
    • Edit Custom Groups
    • Friends Filter
    • Nudge Friends
    • Invite
    • Create RSS Feed
  • Asylums
    • Post
    • Asylum Invitations
    • Manage Asylums
    • Create Asylum
  • Site
    • Support
    • Upgrade Account
    • FAQs
    • Search By Location
    • Search By Interest
    • Search Randomly

rusty kuhnts ([info]igpayatinlay) wrote in [info]rp_tutorials,
@ 2009-07-10 20:11:00

Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Entry tags:layouts: cdj

Filmstrip CDJ Layout


Filmstrip CDJ layout

- Definitely not your standard character table
- Mainly for CDJ connoisseur types, who value form with their function
- Moderate understanding of HTML recommended
- View in use here


The concept of this table was inspired by this entry in [info]rp_tutorials. It uses div tags with a hidden overflow to hide the enormity of the entry beneath the overflow, and then using anchor tags, moves about.

This character layout is more complicated than the average table because it is actually a series of individual tables that link to one another, but because of the div tag, only one is visible at a time. I'll explain how to modify it as best I can, if it's still super confusing, please let me know where I lost you when asking for help. Bonus points if you include your code in a textarea box or a link to the entry where you have it posted.

1. Start with the following bit of code to set up an LJ cut and start the div:


2. Think of this layout as an old school slide show; in each slide there are five characters, when you click an arrow to go forward or backward, you're moving on to a different slide. The code below is the code for ONE slide.



Every slide needs to be preceded by an anchor tag, to identify it. Each of these anchor tags needs it's own unique name - I tend to name them "one", "two", "three", etc., because it's easy to remember, simple, and logical, but they can be named anything you like as long as no two frames are named the same.

Within each frame is a table, within each table there's an img tag with alt text labeled "back" and another labeled "forward". These images are the arrows, and they are linked to the previous and next slides using the pound sign and the name on the anchor tag, i.e. a href="#one".

To summarize:
  • NAME your anchor tag for the slide.
  • Make sure the "back" arrow image links to the anchor tag for the PREVIOUS slide (or in the case of the first slide you can link to nothing, to itself, to another page, or to create a somewhat circuitous effect, to the LAST slide).
  • Make sure the "forward" arrow image links to the anchor tag for the NEXT slide.
3. You're going to have to repeat step #2 for however many slides you have. There are several options for this, depending on how you want the filmstrip effect to move along.
  • Move One Character At A Time: Every character shifts one space to the left each time you click the forward arrow. This is probably the smoothest effect, and it's the one I've chosen to use in the example link above, but it requires the most slides and the most clicks. To achieve it, I recommend copying the previous slide and pasting it, then copy just the table cell that contains the info for the FIRST character of that frame before deleting it. Paste that table cell beneath the LAST character's, and modify the img src tag and the text to suit a NEW character. Repeat this whole process as many times as needed. Obviously, if you're someone who has forty previously played characters, this is going to be a pain because it requires a LOT of copying, pasting, and editing. So consider this...
  • Move Five Characters At A Time: Each click on the forward arrow takes you a full five characters forward. Because each slide has five new characters, there are drastically fewer slides, so there's a lot less copying, pasting and editing. Paste a slide, name it, modify ALL of the img tags and text for each of the characters, repeat as needed. This can feel a bit disjointed for some people, especially if you only have a dozen or so characters, so I'll mention a middle ground option...
  • Move Two Characters At A Time: For anyone who's ever visited a Coppermine hosted photo gallery this might feel familiar (example). There are five images, if you click the forward arrow, the character on the right becomes the character in the center, the character in the center becomes the character on the left. To achieve this effect, copy the previous frame, paste it, find the table cells containing the first TWO characters' icons and text, copy them, and delete them. Below the table cell for the LAST character, paste the table cells for the first two, and edit the img tags and text to suit two NEW characters.
It's kind of confusing, I know! If you're struggling, feel free to ask a question - remember, bonus points to those who include their code or a link to the entry where the code is posted. Whatever technique you use, be sure to remember that each slide needs it's own name, and needs to link to the previous and next slides! The last slide can link to nothing, to itself, to another page, or to create a somewhat circuitous effect, to the FIRST slide.

4. Once you've set up, edited, and linked all your slides together, finish off the entry with this:

And you're finished!


(Post a new comment)


[info]hammertech
2009-07-11 03:18 am UTC (link)
This is a BAMF layout. I think you left out some of your code, though.

(Reply to this) (Thread)


[info]hammertech
2009-07-11 04:00 am UTC (link)
Oops - nevermind. That's what I get for skimming.

(Reply to this) (Parent) (Thread)


[info]igpayatinlay
2009-07-11 04:33 am UTC (link)
Thanks! Yeah, it's broken into pieces since it's kind of dependent on how many characters someone has, or how they want it to function, and I wasn't sure that everyone would grasp the set-up for it if I just did it in one textarea-block-o-code. :>

(Reply to this) (Parent)


[info]kbot
2009-07-11 04:52 am UTC (link)
That is...really neat.

(Reply to this) (Thread)


[info]igpayatinlay
2009-07-12 06:27 am UTC (link)
Thank you. :)

(Reply to this) (Parent)


[info]springsmods
2009-07-23 08:03 am UTC (link)
I get the concept, but I am lost as to how the next slide is posted...is there anyway to see an example of the code for multiple slides? Does that make sense?

(Reply to this)


[info]makethingsfunny
2009-07-25 09:42 pm UTC (link)
thank you so much for this! This is so incredibly helpful as I have characters here on insanejournal and on livejournal as well. This is awesome!

(Reply to this)


[info]nimbuschick
2010-10-23 04:28 pm UTC (link)
This is a great effect. Now I just have to figure out why the div I made borrowing this theory is not lining up right. I must have a dimension wrong somewhere.

(Reply to this) (Thread)


[info]nimbuschick
2010-10-23 04:34 pm UTC (link)
The anchors are being a pain in the butt, basically, and even though I put them above my menu bar in all the code, they're bringing me to just below it and messing it all up. Huh...

(Reply to this) (Parent) (Thread)


[info]t_quibbler
2010-10-23 06:34 pm UTC (link)
It looks like it's working for the Other Heroes section - - Do you feel like you figured it out while I was asleep, or can I help in some way? :D

(Reply to this) (Parent) (Thread)


[info]nimbuschick
2010-10-23 06:40 pm UTC (link)
Yeah. I was just forgetting to bind each anchor section in a table. Thanks!

(Reply to this) (Parent)


[info]peachbiscuit
2011-03-31 06:22 am UTC (link)
I see no one's replied in awhile, but I wanted to say how AWESOME I think this layout is, and give you my own example of how I used it. :) Thanks so much!

Example HERE! (I've got one more game to add, but you get the idea :D)

(Reply to this)



Home | Site Map | Manage Account | TOS | Privacy | Support | FAQs