我有一些javascript弹出窗口在html中工作正常。
我知道弹出窗是如何工作的,
但是当我试图修改并使用page.tpl.php中的代码时,所有这些代码总是失败
是drupal总是剥离弹出窗口?以及如何使其有效?
提前致谢
- - - - - - - - 添加 (我知道这些代码很脏)
<head></head>
中的:
<script type="text/javascript">
//default pop-under house ad url
infinityads_enable_pop = true;
infinityads_frequencyCap =0;
durl = '';
infinityads_layer_border_color = '';
infinityads_layer_ad_bg = '';
infinityads_layer_ad_link_color = '';
infinityads_layer_ad_text_color = '';
infinityads_text_link_bg = '';
infinityads_text_link_color = '';
infinityads_enable_text_link = false;
</script>
<script type="text/javascript" src="http://localhost/jjj/js.js"></script>
http://localhost/jjj/js.js
中的:
document.write("<img src=\"http://www.myroitracking.com/newServing/tracking_id.php?d=ads.lzjl.com&r=http%3A%2F%2Fads.lzjl.com%2FnewServing%2Ftracking_id.php%3Fb%3D1%26>ruid=1\" width=\"1\" height=\"1\" />");
private_label_prefix = "infinityads";
infinityads_company_name = "infinityads.com";
infinityads_static_host = "static.hatid.com";
infinityads_service = "ads.lzjl.com";
infinityads_image_base_url = "http://creative.hatid.com/network_default/network_5/";
infinityads_search_base_url = "http://ads.lzjl.com/newServing/yesupSearch/web.php?q=";
infinityads_adhere_url = "http://infinityads.com";
infinityads_widget_title = "Clicksor Connect";
infinityads_widget_title_link = "http://www.clicksor.com/connect-widget";
infinityads_pub_host = "publisher.infinityads.com";
infinityads_nid=5;
infinityads_pid=5828;
infinityads_sid=9091;
infinityads_banner_adtype=0;
infinityads_enable_inter=false;
document.write("<iframe src=\"http://ads.clicksor.com/newServing/searchTrack.php?nid=5&random=439915900\" width=\"1px\" height=\"1px\" frameborder=\"0\" scrolling=\"no\" style=\"position:absolute;z-index:9999301;\"></iframe>");
if ( typeof(Yesup) == "undefined" ) {
document.write('<script type="text/javascript" src="http://localhost/jjj/show_ad.js"></script>');
} else {
Yesup.Init();
}
http://localhost/jjj/show_ad.js
中的位于以下网址中:
http://wimg.co.uk/YUZ.js
答案 0 :(得分:0)
Drupal会删除您通过CMS输入的页面中的脚本(如果已将其设置为清理它们)。它不应该剥离模板中的代码。
您可以发布模板文件吗?