Just because i forgot,… i have something like this:
function print_effect_script($img_class, $effect) {
echo '<script language="javascript" type="text/javascript">';
echo "
$(documment).ready(function() {
$('.".$img_class."').script({offset: ".$effect."});
});
";
echo '</script>';
}
add_action('wp_head', 'print_effect_script' );
My only problem is… how do i send ‘img_class’ and ‘effect’ params to the function?