Tiago
|
I always work with Dreamweaver when i want to develop my web pages, and as some of you know, Dreamweaver includes some javascript automatically when you insert a rollover image type to your webpage.
I've noticed that Rain was not replacing the urls of the javascript of the onmouseover behaviour.
So i dig in the code a bit and i've added this to the path_replace function:
if( in_array( "onmouseover", self::$path_replace_list ) ){
$exp = array_merge( $exp , array( '/<a(.*?)onmouseover="(.*)\'(\w+\/.*?)\'(.*?)"/i' ) );
$sub = array_merge( $sub , array( '<a$1onmouseover="$2\'' . self::$tpl_dir . '/$3\'$4"') );
}
i've also added this entry to the $path_replace_list
static $path_replace_list = array( 'a', 'img', 'link', 'script', 'input', 'onmouseover' );
Now my Rain is replacing the directories even in the onmouseover events.
Just wanted to share this with you guys.
|