我一直在创建一些网站,内容被jQuery和CSS调用到#div容器.有没有人知道在创建这些类型的单页网站时使用Omniture Site Catalyst跟踪代码的方法?可能?
以前我一直在使用Omniture与更传统的html网站,通过插入软件提供的下面几块难以辨认的代码.它似乎跟踪所有.html页面的情况.
<!-- SiteCatalyst Code version: H.17.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="http://www.urlofsite.com/js/s_code.js"></script>
<script language="JavaScript" type="text/javascript"><!--
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)//--></script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img
src="http://code.urlofsite.com/b/ss/ranhrollup/1/H.17--NS/0"
height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.17. -->
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
无论如何要解决这个问题,并使用if语句创建几行Javascript,将跟踪代码应用于特定的#div#?
更新:
我与专家进行了交谈,并表示您可以在onClick事件中添加额外的st()调用,以便将您想要跟踪的任何内容作为附加页面视图.例如,您为"Books"链接设置了以下click事件处理程序
$('a.manned-flight').click(function() {
$('html, body').animate({
scrollTop: 1250
}, 1000, function() {
parallaxScroll(); // …Run Code Online (Sandbox Code Playgroud) 我怎么能像我们的旧Facebook页面一样,亲自发送我们的朋友邀请函来喜欢我们的页面?我在新的时间轴布局中找不到此功能?
这仍然是可能的 - 我还没准备好发布广告或者想要发布到我的墙上.
谢谢!
我实现了这个代码,我喜欢它是多么直接,因为我计划将ALOT添加到Source中 - 但是对于我的生活,我无法弄清楚如何将所选的一个添加为链接.
EG>开始打字>自动填充工作>选择>转到该URL
现行代码:
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("input#autocomplete").autocomplete({
source: ["NYC", "LA", "Philly", "Chitown", "DC", "SF", "Peru"]
});
});
</script>
</head>
<body style="font-size:62.5%;">
<input id="autocomplete" />
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
我在这里找到了一些关于此的讨论,但没有一个代码建议有效.如何添加与上述值相关联的URL; 如果我可以保持相同的语法并且接近值添加,我会很高兴; EG:"秘鲁"www.peru.com
当尝试运行简单的 Web 表单时,我在 mac VS 7.4.3 上不断收到此错误。
CSC : error CS1902: Invalid option 'portable' for /debug; must be full or pdbonly
Run Code Online (Sandbox Code Playgroud)
我尝试使用以下命令手动更新 .csproj 文件:
<DebugType>portable</DebugType>
Run Code Online (Sandbox Code Playgroud)
但没有任何帮助;据我了解,它来自基于 Windows/Microsoft 的软件包;但不知道如何修复以在 mac 上运行。
/Library/Frameworks/Mono.framework/Versions/5.8.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2057,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Entity". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Run Code Online (Sandbox Code Playgroud)
我还注释掉了上面文件中“便携式”的所有实例..?
mono visual-studio-macros visual-studio-2017 visual-studio-mac
我正在按照https://github.com/norfolkmustard/ApplePayJS中的教程将Apple付费与PHP网站集成.但是,如果我点击苹果付款按钮,我会收到以下错误.
unable to load client key: -8178 (SEC_ERROR_BAD_KEY)
Run Code Online (Sandbox Code Playgroud)
当我详细检查错误时,我得到以下细节:
我甚至尝试通过添加以下内容来禁用curl中的SSL:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激,提前致谢.
更新更新:
我可以通过定义列名来查询......所以问题出在查询上, SELECT *但我的表中有近100列......我不想将它们全部硬核并维护该列表......为什么可以我用不SELECT *??
我只是想创建一个按钮;前端,用户可以在其中选择三个表中的一个导出为 .csv 文件。单击一个选项 -> 该选项将通过该选项传回我的 PHP,table:which;然后将在 oracle 数据库中查询特定表并在浏览器中下载该表。以下是我返回错误的尝试。
jQuery前端调用(导出按钮点击):
$('#export' + '.' + crnt).click(function(){
let which = crnt;
window.location.href = "export?table="+which;
});
Run Code Online (Sandbox Code Playgroud)
PHP 通过纤薄的路线:
<?php
$app->post('/export', function ($request, $response, $args) {
$which = $_POST['table'];
$config = parse_ini_file(__DIR__ . '/../../xx/xx.ini');
$dbuser = $config['dbuser'];
$dbpass = $config['dbpass'];
$dbhost = $config['dbhost'];
$dbname = $config['dbname'];
$constr = $dbhost.'/'.$dbname;
$conn = oci_pconnect($dbuser, $dbpass, $constr, 'XXX');
if ($which == 'table_1'){
$sql = 'SELECT …Run Code Online (Sandbox Code Playgroud) 是否可以使用链接链接到在灯箱或幻灯箱中打开的内容的iFrame?
例如; 查看我的平面设计图库点击这里>灯箱在不同的网站上显示我的图库
可能?我如何在灯箱/ fancybox中编码?我知道现在可能 - 但不能用我的布局实现它.
更新 - 2011年12月17日
我正在尝试使用fancybox,下面是我正在开发的布局的链接 - 我已经能够在不同的doc中实现这一点,从头开始调用相同的库/ css,所以它可以'是的.我觉得它必须是我的一些其他内联JavaScript之间的冲突.任何人都可以帮我弄清楚为什么iFrame花式盒子不能用我的布局实现?(我知道有一些JS和代码没有在布局atm中使用,但这只是因为我一直在剥离调试,我将使用所有代码)
我正在尝试在我的网站上使用'LeagueGothic'字体或类似的变体.例如在'http://www.woostercollective.com'和'http://www.superchief.tv'这样的网站上用作标题.虽然出于某种原因,在我通过firebug拖出它们的标题样式并将它们放入我的CSS之后,它仍然在'Arial'渲染.我错过了这种字体的东西 - 我还把语法切换到了' '然后" "尝试了一些其他的变化.
font-family: "LeagueGothic","Helvetica Neue","Helvetica","Arial";
Run Code Online (Sandbox Code Playgroud) 警告:参数3 showBlogSection()应该是一个引用,值在第100行的/home/smartsta/public_html/includes/Cache/Lite/Function.php中给出
我突然在我的Joomla网站上的内容区域显示上述错误,有什么建议吗?
更新: 没有这样的运气找到访问godaddy ftp文件目录,ftp或Joomal C面板中定义的文件和目录.在FTP中,我无法找到对此特定文件的访问权以调查第100行的内容.在Joomla面板中,在全局配置中,我能够将"错误消息"切换为无,因为至少要隐藏此错误.在缓存目录中,虽然显示,但我没有看到进入该文件夹的任何选项.我也在c-panel屏幕的底部看到这个,但只是链接到joomla帮助站点,并且在字段内我没有看到描述区域切换'ON或OFF'"以下PHP服务器设置不是最佳的安全性并建议更改它们:PHP register_globals设置ON而不是OFF
"
UPDATE2 !:
我找到了有问题的文件,下面是代码.第100行仅说明:
global $$ object_123456789;
application/x-httpd-php Function.php PHP脚本文本
<?php
/**
* This class extends Cache_Lite and can be used to cache the result and output of functions/methods
*
* This class is completly inspired from Sebastian Bergmann's
* PEAR/Cache_Function class. This is only an adaptation to
* Cache_Lite
*
* There are some examples in the 'docs/examples' file
* Technical choices are described in the 'docs/technical' file …Run Code Online (Sandbox Code Playgroud) 我正在尝试将一个SetTimeout动画类型转换添加到jQuery Show/Hide调用.下面是我目前如何拥有它,但我想在恢复原始状态之前添加"show"div保持显示的特定时间量#bg_dv.如果可能的话,我还想在效果之间添加动画过渡.
function tilt(){
$("#area1").click(function(){
$("#bg_div").hide();
$("#bg_skew").show(); // I would like to show this Div for about 5 seconds
// and then have original back.
});
}
Run Code Online (Sandbox Code Playgroud) javascript ×4
jquery ×4
php ×3
html ×2
applepay ×1
applepayjs ×1
css ×1
css3 ×1
curl ×1
facebook ×1
geospatial ×1
iframe ×1
joomla ×1
jquery-ui ×1
mono ×1
oracle ×1
public-key ×1
select ×1
sql ×1
warnings ×1