小编Rav*_*thi的帖子

如何在IE中自动允许被阻止的内容?

我在下面的代码中使用示例菜单.

    <html>
<head>
<title>Tree Demo</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.jstree.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
/*       $("#main").jstree({
                "themes" : {
                    "theme" : "default",
                    "dots" : false,
                    "icons" : false
                },
                "plugins" : [ "themes", "json_data", "ui"],
                "json_data" : {
                    "ajax" : {
                        "url" : "jsondata.json",
                        "data" : function (n) {
                            return { id : n.attr ? n.attr("id") : 0 };
                        }
                    }
                }
        });

         $("#main").bind("open_node.jstree", function (e, data) {
                     // data.inst is the instance which triggered this event
                     console.log(data);
                     console.log($.data(data.rslt.obj[0],"folder_name")); …
Run Code Online (Sandbox Code Playgroud)

html javascript internet-explorer

50
推荐指数
5
解决办法
13万
查看次数

如何将Php变量值分配给Javascript变量?

可能重复:
将PHP变量传递给Javascript的最佳方法是什么?

我使用以下代码:

<script type="text/javascript">
<?php $ctnme = $_SERVER['REQUEST_URI'];
$cnme = explode("/",$ctnme);
echo $cname = $cnme[1];
?>
var spge = <?php echo $cname; ?> ;
alert(spge);
</script>
Run Code Online (Sandbox Code Playgroud)

该值不会发出警报.这是什么错误?

html javascript php

27
推荐指数
2
解决办法
13万
查看次数

自动为PHPMyadmin DB生成数据库图表?

我想要工具生成下面的DB图,我需要生成如下所示的特定数据库表结构,

在此输入图像描述

我该怎么办?...有没有免费的工具或应用程序可供使用.我已经尝试过navicat8lite_ora_en和HeidiSQL.但我不能让它发挥作用.

database diagram phpmyadmin

25
推荐指数
2
解决办法
8万
查看次数

如何在Wordpress中设置,获取和销毁cookie?

如何在Wordpress中设置,获取和销毁cookie?

我上网但我无法得到明确的想法,请帮我找到.

php cookies wordpress

20
推荐指数
2
解决办法
6万
查看次数

如何在jquery中单击按钮时添加div?

我每次点击按钮时都需要添加以下div结构?我需要在每次使用jquery单击按钮时生成以下整个div结构.

<div class="module_holder">
<div class="module_item">
<img src="images/i-5.png" alt="Sweep Stakes"><br>sendSMS
</div>
</div>
Run Code Online (Sandbox Code Playgroud)

帮我.

谢谢拉维

jquery

10
推荐指数
1
解决办法
6万
查看次数

如何在phtml模板中调用Magento块?

我需要在页脚中显示更多链接.我在magento admin中创建了这些链接作为静态块(id = sample_links).

然后我添加了以下代码page.xml文件

<reference name="foot_lnk">  
<block type="cms/block" name="sample_block" before="-">
      <action method="setBlockId"><block_id>sample_links</block_id></action>
    </block>
</reference>
Run Code Online (Sandbox Code Playgroud)

我在footer.phtml中称这个为,

<?php echo $this->getChildHtml('foot_lnk') ?>
Run Code Online (Sandbox Code Playgroud)

但它不显示CMS静态块内容.问题是什么?

php block magento content-management-system

10
推荐指数
3
解决办法
6万
查看次数

在JqueryUI中可拖动和调整大小的图像不起作用?

我使用下面的代码来拖动和调整图像大小,

<!DOCTYPE html>
<html>
    <head lang="en">
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css"/>

        <script type="text/javascript">
    $(document).ready(function() {

        $( "#img_content" ).draggable().resizable();

    });
    </script>
    </head>
    <body class='default'>       


<div class="demo">
<!--<div id="img_content" class="ui-widget-content">
    <p>Drag me around</p>
</div>-->

<img id="img_content" class="ui-widget-content" src="Tulips.jpg" />

</div>


    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

可调整大小正在正常工作.但拖动图像不起作用.如果我申请div结构

<div id="img_content" class="ui-widget-content">
        <p>Drag me around</p>
    </div>
Run Code Online (Sandbox Code Playgroud)

它的工作正常.

如何为图像标记实现拖动和调整大小?

jquery-ui jquery-ui-resizable jquery-ui-draggable

4
推荐指数
2
解决办法
2万
查看次数

如何在PHP中找到日期字符串中的日期?

我有下面的字符串"June 1, 2012".我需要为上面的字符串找到一天.

这个值从wordpress postdate()函数返回.

我怎么能在PHP中这样做?

php date

4
推荐指数
1
解决办法
2万
查看次数

IE8不支持Google API字体

我在下面的代码中使用了来自的字体支持,

<link href='http://fonts.googleapis.com/css?family=Open+Sans|Oswald|Play|Numans' rel='stylesheet' type='text/css'>
Run Code Online (Sandbox Code Playgroud)

如果我使用上面的URL,所有浏览器支持的字体.

    @font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: normal;
  src: local('Oswald '), local('Oswald'), url('http://themes.googleusercontent.com/static/fonts/oswald/v2/-g5pDUSRgvxvOl5u-a_WHw.woff') format('woff');
}
@font-face {
  font-family: 'Numans';
  font-style: normal;
  font-weight: 400;
  src: local('Numans'), local('Numans-Regular'), url('http://themes.googleusercontent.com/static/fonts/numans/v2/H6jkjoZl4TIrPYyjhdoCcw.woff') format('woff');
}
@font-face {
  font-family: 'Play';
  font-style: normal;
  font-weight: normal;
  src: local('Play'), url('http://themes.googleusercontent.com/static/fonts/play/v2/-SXnV4mZjf4oh1IBw13WZw.woff') format('woff');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans'), url('http://themes.googleusercontent.com/static/fonts/opensans/v5/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff') format('woff');
}
Run Code Online (Sandbox Code Playgroud)

我复制并粘贴上面的css代码在我的CSS for fonts support.in IE8 Alone不支持的字体.对此有什么解决方法吗?

css google-font-api

3
推荐指数
1
解决办法
7195
查看次数

门面设计模式与MVC类似吗?

我对外观设计模式的使用感到困惑.外观类似于MVC.我问这个是因为我在一个帮助将前端接口与后端内部分离的项目中使用了外观.

design-patterns

3
推荐指数
1
解决办法
3283
查看次数