scriptygoddess

Archive for January, 2007

29 Jan, 2007

Get current URL with PHP

Posted by: Jennifer In: Script snippet

Because I was having a "duh" moment.
$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]

From Javascript Get or Set Checked Radio Value
// return the value of the radio button that is checked
// return an empty string if none are checked, or
// there are no radio buttons
function getCheckedValue(radioObj) {
if(!radioObj)
return "";
var radioLength = radioObj.length;
if(radioLength == undefined)
if(radioObj.checked)
return radioObj.value;
else
return "";
for(var i = 0; i < radioLength; i++) {
if(radioObj[i].checked) {
return radioObj[i].value;
}
}
return "";
}
// set the [...]

22 Jan, 2007

floated box with extra (unintented) margin

Posted by: Jennifer In: Bookmarks| CSS| CSS related

Boy, do I love that "Position is everything" site. Every problem I've been having these days with CSS, the fix can be found there.
Here's today's CSS dilema. Had a simple floated div. Gave it a margin – and for some reason, IE doubled it. The solution is just to add "display: inline;" to the floated [...]

Ran into this problem today: Had a container div with floated divs inside. However the container div was shrinking up above the bottom of the floated divs inside.
See example here.
Found this solution which basically suggested adding the following so that it wouldn't do that:
.containerdiv:after {
content: ".";
display: block;
[...]

11 Jan, 2007

Email Friendly URLs

Posted by: Jennifer In: Bookmarks

Ever email someone a really long link and have the thing wrap to two lines, and then your friend gets the email clicks on the link but it's broken so they can't go to it? I just found this website: Email URL that will give you a simple URL to send to people and it [...]

09 Jan, 2007

Vertical Center Text in DIV

Posted by: Jennifer In: Bookmarks| CSS| CSS related

Like I said, I'm still fighting my way through understanding CSS. Here's a little tid-bit I finally understand today. Had a bit of text that I wanted to have centered in a nav bar. "vertical-align: middle;" didn't seem to do anything. Found this article which said this:
the thing with vertical-align is that it's vertical aligning [...]

08 Jan, 2007

1px Background Image Shift

Posted by: Jennifer In: CSS

I'm still fighting my way to understand CSS – so if there's a better way to do this, feel free to let me know.
I wanted a black center column, that I would put content boxes with a white background over it. So I created my background with the centered black column, used CSS to center [...]

04 Jan, 2007

Captcha

Posted by: Jennifer In: Bookmarks| PHP Related

Just installed this captcha code on a form and it was extremely simple to do and so far seems to work great. Just thought I'd share.


Featured Sponsors


  • cliff: hi wonder if you can help me, pls i designed www.kouga.mobi using dreamweaver CS3 and now want to make the phonenumbers into links so that if you
  • jerey: how do i rewrite this because it tried RewriteEngine on #Options +FollowSymlinks RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FIL
  • Jennifer: So I was testing this out to see if maybe something changed in the latest version - I had a test wordpress setup - and just dumped the mycomment funct

About


Advertisements