I was showing my dad something on my site and realized I hadn't posted anything since Wednesday! I must say this is very odd behavior.
I've been spending most of my on-line time working on Syn's site. I'm slowly getting it to look (and work!) right, but there's still a few things that I haven't been able to figure out on my own.
I'm going to tell you what I've been doing over there, so go look at it and then come back and continue reading....
OK, did you get a good look at it? Good. Here's what's been happening. And just a warning, I'm about to totally geek out on you.
The first thing I attacked was the comments. It was pretty easy to replace the "comments" text with an image, but we wanted the button to light up if there were comments. I found a script in the Scriptygoddess archives that changed the comments line depending on the number of comments. Mission accomplished.
The next mission was the recent entries and archives lists. The plan for these was to have them be keypads from the switcher at work, and to have the buttons light up when a mouse hovered over them. I took pictures of the switcher at work with the keypad lit up and then with it unlit. I used a tripod so that the pictures would be the same and because tripods tend to reduce the amount of blurriness in low light pictures! Some PhotoShop time later and I've got 24 little buttons, 12 lit up and 12 unlit. I wrote the code for a table and lo and behold I've got an unlit keypad.
Now that I've got my keypad table, I need it to do something. After a little trial and error I figured out how to get each of the recent entries attached to one of the buttons using a combination of "lastn=1" and "offset=x" (with x being a number from 1 to 9). So now the keypad actually works, but I want it to light up!
A google search later and I found out that the effect I wanted was called "MouseOver" and I found a tutorial on how to write the code to make it work. And I've got a keypad that works and lights up. Woot!
And that brings us pretty close to right now. I've got a keypad in there that lights up for the archives, but they all point to March! Which really wasn't the idea. And I also want to add a little text box above each keypad that'll show the title of the entry or archive you're hoving over.
That's where I'm at right now. I'm having all kinds of fun geeking out and learning lots of new code bits. I'm going to have to ask for some outside help at this point (Scriptygoddess seems like a good place to start) because I'm not really sure what to try next. Of course if there's some benevolent script writer out there that wants to help me out I'd love the assistance.
Last thing I want to say is that Scriptygoddess rocks! I wouldn't have even attempted this if I hadn't already successfully used a bunch of scripts from them. That gave me the confidence to try something completely new and I'm loving it!
Comments (2)
wow, you have been busy...I am going to try this. very good job!
(still on vacation-*winks*)
Posted by LillyAnne | March 29, 2003 9:18 AM
Posted on March 29, 2003 09:18
Did you mean a text box that appears when you hover? like This?
Cause you would just add:
title="<$MTArchiveDate$>" or, actually, put it in the ALT field for that image tag
For the actual table itself I have no idea. Maybe something with the MTCalendar option will work because what I can think of won't work with images that need to stay in that order or that need to break rows:
<table><tr><MTArchiveList archive_type="Monthly" lastn="X">
<td><a href="<$MTArchiveLink$>"><img src="Buttons/01.jpg" ALT="<$MTArchiveDate$>" onMouseOver blah blah></a></td>
</MTArchiveList></tr></table>
(where X is the number of buttons you want to go to months - not sure if you're using all twelve buttons for the archive links or just the top 9)
I'd think it'd be easier to do with the CSS float attribute than a table, like I do my thumbnails for CisSnaps. But that won't fix the problem with the numbers being in order. I'd think you'd have to do a bit of code for that which takes MTArchiveDate and subtracts it from whatever the current date is and if it's one month the output is 1 and if it's the 3rd month past it's 3 and you'd make those outputs match the image names and then add the .jpg or .gif to the end and that image would appear.
If you post the code that you used to make the Recent Entries bit work I'll try to look at it again when it isn't 5am and I'm just getting to bed. :)
Posted by Cis | March 30, 2003 4:08 AM
Posted on March 30, 2003 04:08