--- scripts/pgallery/src/pgallery.sh 2012/08/27 14:23:59 1.1 +++ scripts/pgallery/src/pgallery.sh 2012/08/28 08:27:25 1.3 @@ -5,7 +5,7 @@ # can do whatever you want with this stuff. If we meet some day, and you think # this stuff is worth it, you can buy me a beer in return Aron Schlesinger # -# $Paefchen$ +# $Paefchen: scripts/pgallery/src/pgallery.sh,v 1.2 2012/08/28 08:15:13 as Exp $ # ARG_TITLE="PGallery" @@ -140,6 +140,7 @@ HLaErzv/wD99ABmjNZk0AAAAABJRU5ErkJggg=="); margin: 10px auto; font-family: Geneva,Arial,sans-serif; font-size: 12px; + text-shadow: 1px 1px 1px #000; } div.tn { float: left; @@ -177,11 +178,12 @@ div.over { } div.over a.left, div.over a.right { display: block; + /* shell fuck of: missing CTLARI (shouldn't happen) - WTF?! */ + width: $(($ARG_BIGSIZE / 2))px; position: relative; top: 1px; left: 1px; background-repeat: no-repeat; - width: $(($ARG_BIGSIZE / 2))px; } div.over a.left:hover { background-position: 5% center; @@ -231,7 +233,6 @@ div.box div.c { line-height: 25px; position: relative; left: 4px; - text-shadow: 1px 1px 1px #000; } body > div.c { text-align: center; @@ -240,7 +241,6 @@ body > div.c { height: 25px; line-height: 25px; position: relative; - text-shadow: 1px 1px 1px #000; margin: 4px; } a img { @@ -262,7 +262,8 @@ div.nav a:hover { div.nav div.top { position: absolute; text-align: center; - width: ${ARG_BIGSIZE}px; + width: $(($ARG_BIGSIZE - 100))px; + margin: 0 50px; } .left { float: left; @@ -322,7 +323,9 @@ html_img() linkb=$3 linkn=$4 - height=$($BIN_IMGINFO -f $img | awk '{print $4}') + info=$($BIN_IMGINFO -f $img) + width=$(echo $info | awk '{print $3}') + height=$(echo $info | awk '{print $4}') if [ "$linkb" != "" ] then @@ -339,12 +342,12 @@ html_img() cat <