BaylorRae
-
how do you compile LESS -> on a live WordPress site?
If you're feeling adventurous you can use Git with Capistrano. Capistrano will compile your repo into a tar ball and upload it (I think) via sftp. Capistrano is generally used by Rails developers, but I've gotten it to work on a couple PHP…
-
Notched Left Navigation
You can use the pseudo selector ::after to semantically create new elements. Because it's technically separated from the original element it doesn't inherit the parents size. This should give you what you're looking for. http://codepe…
-
Wordpress create users by code
If your adding users from a loop you can probably just create a file at root of WP and include wp-blog-header.php. Something like this should work.
-
Change class using select drop down menu
This works. JS Change Class .red { border: 1px solid red; } .blue { border: 1px solid blue; } .green { border: 1px solid green; } Red Blue Green var colors = document.getElementById('colors'); var button …
-
Thickbox - hide title on image hover
You could swap the text from the title attribute with the alt attribute and vice versa. Then tell the lightbox plugin to pull the description from the alt attribute.
-
need help making a script
I don't know prototype so you'll have to look through the documentation. If you want to use the product name, then it should work just like that.
-
need help making a script
I've zipped up all my files that I used to test this.
-
Load website + Jquery popup
You need to use javascript to check if the window has the hash. You can get the window's has with this var hash = window.location.hash Then you need to see if the hash is equal to the popup's id if( hash.replace(/#/', '') …
-
need help making a script
I would save the persons shopping cart in a PHP session separated with commas. $_SESSION['user_cart'] = '5,5,2,4,2'; Then use jQuery to send information to a php page to add to the session. jQuery(document).ready(function($) { …
-
remove a Class
Using raw javascript I came up with this. Javscript, remove class div { border: 1px solid #000; } .padding { padding: 10px; } .background { background: #f7f7f7; } window.onload = function() { var …
-
Pass form array data with Jquery ajax
You could serialize the data using the serialize function from php. http://php.net/serialize the phpjs organization has ported the function to javascript so you could serialize it with javascript and unserialize it with PHP. ---------- Another so…
-
Get the mailto link without the mailto
Try this. $(function() { $('a[href^=mailto]').addClass('mailbox'); $('.mailbox').click(function() { var url = $(this).attr('href'); url = url.replace(/mailto: /, ''); alert(url); retu…
-
bold buttom on a textarea
Just from a google search I found this. http://code.google.com/p/jwysiwyg/
-
Get the mailto link without the mailto
If your using jQuery then grab the attribute $('.mailto').click(function() { href = $(this).attr('href'); })
-
Get the mailto link without the mailto
I've seen people use javascript to add links, so bots can't take the email address. It's not super practical, but it separates the name from the extension to prevent bots from reading it. // jQuery jQuery(document).ready(functio…
-
Pulling only one photo into a webpage from Flickr
I'm assuming you want to use javascript and in more detail jQuery. I grabbed this code from the snippets area and I think it's want you want $(document).ready(function() { var toLoad = 1; $.getJSON(\"http://api.flickr.com/servi…
-
Fun with AJAX
Net Tuts has a two part series on creation Ajax requests from scratch. Part 1: http://net.tutsplus.com/videos/screenca ... avascript/ Part 2: http://net.tutsplus.com/videos/screenca ... pt-part-2/
-
help w/ jquery conflict
Hmm, something else is messing it up. I just downloaded the latest version of the light box and swapped the jQuery version 1.2.3 with the latest and it worked perfectly. Try putting the lightbox-0.5.min.js script tag after the jquery script tag.
-
help w/ jquery conflict
Try loading the lightbox.js plugin after jquery.js
-
Good, Simple Validation Script
When checking email addresses I use this. function check_email() { var email_field = document.form_name.email_field.value; if( /\b[\w\._-]+@[\w-_\.]+\.[a-zA-z]{2,4}\b/.test(email_field) ) { return true; }else { return false; } }
-
Help with jQuery Accordion
If you want to slide the description after a few seconds try this. $(document).ready(function($) { var delay = null; // Stores the timeout var time = 1000; // Time in milliseconds var trigger = $('#accordion dt a'); var description …
-
Newsletter
I'm assuming by newsletter you want to send an email to a group of people. I've never built something like this before, but I would do something like this. Create a table in your database called "newsletter" with 3 fields […
-
Where to find/How to create a Question Captcha
I uploaded a video on creating a captcha using this technique. You can find it on youtube. http://www.youtube.com/watch?v=OW3NolAqsqk
-
Changing something based on the browser window width
You might want to add this in case the browser is resized. // On Resize $(window).resize(function() { if( $(this).width() < 900 ) { console.log(\"Less\"); }else { console.log(\"More\"); } });
-
Javascript function to enable textfield on dropdown select
Start by validating your code. It will not pass. Among other things, you use uppercase letters in attribute names, such as onChange, which is valid HTML but invalid XHTML. Then you close your input tags with /> which is valid XHTML and invalid HT…
-
Changing something based on the browser window width
Try this if( $(window).width() < 900 ) { console.log(\"Less\"); }else { console.log(\"More\"); }
-
Where to find/How to create a Question Captcha
You could do something like this. When you want to add a new question, do something like this 3 => array( 'question' => '5 + 6', 'answer' => '11' ) And then add that to the end of the questions a…
-
coda slider guru
I'm sorry for the long wait. I've been away from my computer and didn't get a chance to upload the files. I've uploaded the final to my website http://geek-like-me.com/example/three-dash/ and the zip http://geek-like-me.com/exa…
-
coda slider guru
I will help you build the slider, but I'm in my last week before Thanksgiving break and I have a few tests that I need to study for so I can't work on it right now. But I'm free this next week so hopefully I can help you make your cod…
-
coda slider guru
jQuery for Designers has a great tutorial on creating an infinite carousel. http://jqueryfordesigners.com/jquery-infinite-carousel/ If you need help with the jQuery, I will help you.