Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch($defaults['arg']['id'])
- {
- case 'tba':
- case 'nla':
- break;
- default:
- $ret.=
- '
- <script
- language=\"JavaScript\"
- >
- function addslashes(str){
- return str.replace(/\'/g, "\\'");
- }
- function htmlEntities(str){
- return
- String(str).replace(/&/g, \'&\').
- replace(/</g, \'<\').
- replace(/>/g, \'>\').
- replace(/\"/g, \'"\');
- }
- function loadplayer(track,title){
- document.getElementById(\'player\').innerHTML=
- +\'<table border=\"0px\" cellpadding=\"0px\" cellspacing=\"0px\">\'
- +\'<tr>\'
- +\'<td bgcolor=\"black\" width=\"427px\" height=\"240px\" align=\"middle\">\'
- +\'<video src="\'+track+\'.mp4" autoplay=\"1\" controls=\"\" max-height=\"240px\">\'
- +\'</video>\'
- +\'</td>\'
- +\'</tr>\'
- +\'<tr>\'
- +\'<td align=\"left\" style=\"font {variation: small-caps; size: +2;}">\'
- +htmlEntities(title)
- +\'</td>\'
- +\'</tr>\'
- +\'</table>\';
- }
- var listener_'.
- $defaults['arg']['id'].
- '=
- document.getElementById(\'id_'.
- $defaults['arg']['id'].
- '\');
- listener_'.
- $defaults['arg']['id'].
- '.addEventListener(
- "click",
- loadplayer(
- \''.
- addslashes($defaults['arg']['clip']).
- '\'
- ','.
- '\''.
- addslashes($defaults['arg']['title']).
- '\'
- ),
- false
- );
- </script>
- ';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement