robinturner: (Default)
[personal profile] robinturner
I normally save my factual questions for mailing lists, but none of ones I'm subscribed to seem relevant to these, so I'll see what the combined knowledge and goodwill of my LJ friends can achieve.

  1. Are there any nice CSS tricks that will do something interesting to a graphical link on a mouseover (i.e. the graphic equivalent to "hover")?

  2. On a UNIX account, is there any way to set my .forward list so that, when people receive forwarded mail, the "From:" field is filled by the address of the account, not the sender?

  3. How do you make the batter for Chinese prawn/chicken/whatever balls come out both thick and fluffy?



My guess is that Arya can answer all three.

Date: 2002-02-16 12:30 pm (UTC)
From: [identity profile] arya.livejournal.com
1. I bet there is, but I don't know it. I only use pure html and php for web design.
2. Not sure what you mean. Which account do you want the from: field to show, the account forwarding the mail, or the account that sent it originally? Or do you mean that you want the e-mail to show "solri@localhost.localdomain" instead of "Sol Ri <solri@localhost.localdomain>"?
3. If you want thicker batter, use more cornstarch/flour/rice flour/ whatever starch you're using. Baking soda should make it fluffier.

Date: 2002-02-16 05:27 pm (UTC)
From: [identity profile] solri.livejournal.com

  1. I'm not up to PHP. CSS is cool, though, or would be if people had browsers that could handle CSS2, or even a full set of CSS1. Even then, I think it'll be a long time before HTML catches up with LaTeX.

  2. What I want is to anonymise posts. We're using the list as a collective diary, and some students may feel unsafe about expressing their feelings to all the class.

  3. I tried bakng soda, but it spoils the taste.

Date: 2002-02-17 12:19 am (UTC)
From: [identity profile] fnord.livejournal.com
1. I found out from a friend that you can do this with CSS, but it's a real pain in the ass. You have to set two styles with background images, and have hover switch the style. I'd use javascript onmouseover() for that.

2. Is this a mailing list? I don't know how you'd do it that way. If it's for a class diary, I'd make it web based and not mail based, but that's just me... you could easily give each person a unique login/pass and make entries anonymous by storing entries in a mysql database with a php front end. You as the admin could tell who added what entries, but your print statement wouldn't have to show the username field of the row, so it would stay anonymous.

3. If you can taste the soda, you're using way too much. There must be something else going on with your batter if a non-tasteable amount of soda isn't making it fluffy enough. One of my old kung fu instructors has a very popular Chinese restaurant in his family; I'll get a recipe from him.

Date: 2002-02-17 03:27 am (UTC)
From: [identity profile] solri.livejournal.com

  1. Maybe I'll forget it - I can't be bothered with javascript. A while back I decided that,given my limited time, I should learn Perl EOR Java(script) AND LaTeX EOR some other markup language. Given what a computer conservative I am, I opted for the former in each case (there's also the fact that many people browse with javascript disabled). I found something you can do with borders but it's hard getting an effect which will work on a range of browsers.

  2. A web-based list would be better, but would take me too long to set up - I really have to get it up and running this week. I suppose if there are students who want to remain anonymous, I can just ask them to set up a different mail account for use with the list (I don't want them to be completely anonymous, as I have to check for list abuse).

  3. Thanks!

Date: 2002-02-17 10:00 am (UTC)
From: [identity profile] arya.livejournal.com
Ooops, sorry, at Sam's house and accidentally posted as him. Hehe :)

I can write you a php diary, it would take me about 20 minutes, if that. I can also give you the sql to create the database to store the entries. Of course, this is all dependent upon whether or not you have access to a webserver with both php (3 or better) AND a mysql database that you've got create, insert, update and delete privs on. If you do have somewhere to put this, let me know and I'll get cracking on it.

Date: 2002-02-17 12:06 pm (UTC)
From: [identity profile] solri.livejournal.com
Twenty minutes? That's my Arya!
I'm not sure what my account's capabilities are - seems like a bog-standard UNIX user's account. I'll ask my sysadmin in the morning.

Date: 2002-02-17 06:40 am (UTC)
From: [identity profile] solri.livejournal.com
Hah! Found an answer to question one in The CSS Anarchist's Cookbook (http://www.oreillynet.com/pub/a/network/2000/07/21/magazine/css_anarchist.html):

A:hover IMG {border: 2px solid red !important;}

You can see the results here (http://www.bilkent.edu.tr/~fast) if you have a CSS-compliant browser (looks as it should on Konqueror; IE 5.5 changes the border colour but insists on drawing a blue border when not asked for; Netscape 4.* ignores it; Netscape 6.* should be OK).

Date: 2002-02-17 10:11 am (UTC)
From: [identity profile] fnord.livejournal.com
Doesn't work for me... is that supposed to switch to a different image on hover?

I've already got the code for it if you want to do it with javascript. View source on http://www.winterfell.com/mouseover.html

Date: 2002-02-17 12:02 pm (UTC)
From: [identity profile] solri.livejournal.com
Nothing so fancy - just puts a red border round the image. I tried a command that was suppposed to increase the image size, but that didn't do anything.

The link you gave wouldn't display on my browser (Konqueror 2.1.1.) - all I got was a line of "broken image" symbols.

Date: 2002-02-17 06:59 pm (UTC)
From: [identity profile] arya.livejournal.com
Yeah, that's because I didn't upload any images there. Just do a view source and pop in your own image names and such.

Date: 2002-02-18 12:29 am (UTC)

Date: 2002-02-28 02:39 pm (UTC)
From: [identity profile] solri.livejournal.com
Tried this - it works except that the mouseover image comes up not over the image the mouse is over, but over the title (non-mouseover image).

Date: 2002-02-28 03:44 pm (UTC)
From: [identity profile] solri.livejournal.com
Duh (again). Solri makes most basic programming error - forgetting that arrays start with 0! Now it works.

Actually, that slip is pretty ironic, given that I once explained "geek" as someone who would say:

"There are two reasons why I'm a geek: zero, I use emacs; one, I start lists with zero."

Richard Stallman actually talks like that.

Profile

robinturner: (Default)
Robin Turner

June 2014

M T W T F S S
      1
2345678
9101112131415
16171819202122
232425 26272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags