【问题标题】:Open a pop-up window with external page while clicking image from a page in wordpress在wordpress中单击页面中的图像时打开带有外部页面的弹出窗口
【发布时间】:2013-03-18 18:54:47
【问题描述】:

我有情况在单击页面链接或图像时打开一个弹出窗口,指向位于 wordpress 主题文件夹中的外部 php 文件。 我将页面 ID 和永久链接从我单击的页面传递到该外部 php 文件? 请帮帮我..

提前致谢。

【问题讨论】:

    标签: php wordpress popupwindow


    【解决方案1】:

    试试这个..它可能会帮助你..

    下载thickbox js文件并将这段代码保存在脚本中

    $("#id of the image or any button").click(function(){
         var url = "Give the url of the page that you wanna open in the popup";
         tb_show('<h3></h3>', url+'?KeepThis=true&TB_iframe=true&height=150&width=500');
    });
    

    确保将厚盒文件包含在保存上述脚本的文件中

    【讨论】:

      猜你喜欢
      • 2012-04-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多