GreyBox and HighSlide на одном сайте ( видеовопрос )
Добавлено: 15 апр 2009, 12:09
Все о программировании, веб‑разработке и электронике.
https://web-codes.net/
Код: Выделить всё
<script type="text/javascript">
$(document).ready(function(){$('a[href^="http://"]').each(funtion(){if(!$(this).attr('rel')){$(this).attr({rel: 'gb_page_center[500, 500]'});}});});
</script>$('a[href^="http://"]:not("a[id=nogreyb]")').attr(...);

Код: Выделить всё
<a href="http://www.roadrash.no/hs-support/player.swf" onclick="return hs.htmlExpand(this,
{ objectType: 'swf', swfOptions: {version: '8', flashvars: { file: '&file=$OTHER2$&backcolor=000000&frontcolor=ffffff&lightcolor=555555&screencolor=000000&screencolor=000000&stretching=fill' }, params: {allowscriptaccess: 'always', allowfullscreen: 'true', vmode: 'transparent'} },
width: 640, objectWidth: 640, objectHeight: 500, maincontentText: 'You need to upgrade your Flash player'} )" class="highslide">
<span style="font-size: 10pt; color:#82CAFA;"><b>Смотреть</b></a></span>Код: Выделить всё
$('a[href^="http://"]:not("a[id=nogreyb]")').attr(...);Код: Выделить всё
<script type="text/javascript">
$(document).ready(function(){
$('a[href^="http://"]:not("a.highslide")').attr({rel: 'gb_page_center[500, 500]'});
});
</script>