简体   繁体   English

jQuery Facebox插件未出现

[英]Jquery Facebox plugin does not appear

Using the plugin from: Famspam's Facebox however I seem to be encountering some issues getting it to open. 使用来自Famspam的Facebox的插件,但是我似乎在打开它时遇到了一些问题。 The following is my head contents: 以下是我的主要内容:

<head>
 <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
 <title>Prepotence</title>
 <link rel="stylesheet" href="style2.css" type="text/css"/>
 <script src="/src/jquery.js" type="text/javascript" charset="utf-8"></script>
 <link href="/src/facebox.css" media="screen" rel="stylesheet" type="text/css" />
 <script src="/src/facebox.js" type="text/javascript"></script>
 <script type="text/javascript">
    jQuery(document).ready(function($) {
    $('a[rel*=facebox]').facebox({
    loadingImage : '/src/loading.gif',
    closeImage   : '/src/closelabel.png'
   })
  })
 </script>
</head>

And whenever I attempt to open anything with code similar to: 每当我尝试用以下代码打开任何东西时:

<a href="blah.php" rel="facebox">Link</a>

Absolutely nothing shows up, at all. 绝对没有任何显示。

$(function(){
    $('a[rel*=facebox]').facebox({
        loadingImage : '/src/loading.gif',
        closeImage   : '/src/closelabel.png'
    });
});

I've checked it and it's working fine, you can change both $ to jQuery if you're using other frameworks $-related :) 我已经检查了它,并且工作正常,如果使用其他与$相关的框架,则可以将$都更改为jQuery :)

Cheers 干杯

G. G。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM