主题 : cms里的页面用js 加载一个页面进入,显示不了。
级别: 童生
UID: 35649
积分:42 加为好友
威望: 0 精华: 0
主题:3 回复:15
注册时间:2012-06-29
在线时长:0
1#   发表于:2012-06-29 20:17:22  IP:124.192.*.*
cms里的页面用js 加载一个页面进入,显示不了。要显示的页面不在没有放在cms上,放在自己建的项目里。
级别: 童生
UID: 35649
积分:42 加为好友
威望: 0 精华: 0
主题:3 回复:15
注册时间:2012-06-29
在线时长:0
2#   发表于:2012-06-29 20:17:56  IP:124.192.*.*
是必需放在cms里才能显示要加载的页面吗?
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
3#   发表于:2012-06-30 08:38:12  IP:111.201.*.*
回复第2楼  你能描述详细点吗?js什么内容下加载页面?是怎么让它显示的呢?
功成由勤,业精于勤。
级别: 童生
UID: 35649
积分:42 加为好友
威望: 0 精华: 0
主题:3 回复:15
注册时间:2012-06-29
在线时长:0
4#   发表于:2012-06-30 13:22:33  IP:124.192.*.*
这是js

$(function(){
$.get("http://lc.game.com/chips/top.html",function(data){
$(".header").html(data);
});
$.get("http://lc.game.com/chips/sidebar.html",function(data){
$(".text").html(data);
});
});

js入在项目里,没有放在cms上。
级别: 童生
UID: 35649
积分:42 加为好友
威望: 0 精华: 0
主题:3 回复:15
注册时间:2012-06-29
在线时长:0
5#   发表于:2012-06-30 13:23:55  IP:124.192.*.*
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
6#   发表于:2012-06-30 13:36:24  IP:111.201.*.*
js肯定要在cms里才能有效,你在放在别的地方怎么有用呢
功成由勤,业精于勤。
级别: 童生
UID: 35649
积分:42 加为好友
威望: 0 精华: 0
主题:3 回复:15
注册时间:2012-06-29
在线时长:0
7#   发表于:2012-06-30 13:45:43  IP:124.192.*.*
噢,谢谢。还有一个问题,cms上的内容页的上一篇和下一篇。在cms里发表一篇文章后,上一页总是显示没有。必须得点一下生成,然后对发表的文章点一下修改才能显示上一篇。是这样的吗?
级别: 童生
UID: 35649
积分:42 加为好友
威望: 0 精华: 0
主题:3 回复:15
注册时间:2012-06-29
在线时长:0
8#   发表于:2012-06-30 13:46:44  IP:124.192.*.*
代码
<div class="contain">
    <div class="mainbg">
        <div class="right_c">
         <div class="c_t t12gray">当前栏目: <a href="http://lc.975game.com/index.html">首页</a> > [#list channel.nodeList as n][#if n_index!=0] <a href="${n.url}" class="t12">${n.name}</a> [#if n_has_next] &raquo; [/#if][/#if][/#list]</div>
            <div class="c_m t12gray">
             <div class="c_m_t">${content.title}</div>
                <div class="c_m_t2">发布时间:${content.releaseDate} 作者:${content.author!'本站编辑'}</div>
                <div class="c_m_c">
                    [#if content.mediaPath?? && content.mediaType??]
                       <p style="margin: 5px auto; text-align: center">
                    [#if content.mediaType=='FLV'] 
                       <object height="300" width="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
                           <param name="movie" value="/${res}/img/flvplayer.swf" />
                           <param name="quality" value="high" />
                           <param name="allowFullScreen" value="true" />
                           <param name="FlashVars" value="vcastr_file=${content.mediaPath!}&BufferTime=3" />
                           <embed height="300" width="400" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" flashvars="vcastr_file=${content.mediaPath!}" allowfullscreen="true" src="/${res}/img/flvplayer.swf">
                           </embed>
                       </object>
                    [#elseif content.mediaType=='FLASH'] 
                       <embed height="300" width="400" type="application/x-shockwave-flash" quality="high" src="${content.mediaPath}" wmode="transparent" align="center"></embed>
                    [#else] <embed height="300" width="400" type="video/x-ms-wmv" src="${content.mediaPath}" console="cons" controls="ImageWindow" autostart="true"></embed>[/#if]</p>
                    [/#if]${txt!}
                </div>
                <div class="otherlink">
                     <strong class="t12">登录:</strong><a href="http://lc.975game.com/" target="_blank" class="t12">http://lc.975game.com/</a><br />
                     <strong class="t12">马上注册体验:</strong><a href="http://account.975game.com/reg/register.jsp" target="_blank" class="t12">http://account.975game.com/reg/register.jsp</a>
                </div>
                <div class="c_m_n">
                     <strong>上一篇:</strong>[@cms_content id=content.id next='1' channelId=channel.id][#if tag_bean??]<a href="${tag_bean.url}">${tag_bean.title}</a>[#else]没有了[/#if][/@cms_content]<br /><br />
                     <strong>下一篇:</strong>[@cms_content id=content.id next='0' channelId=channel.id][#if tag_bean??]<a href="${tag_bean.url}">${tag_bean.title}</a>[#else]没有了[/#if][/@cms_content]
                </div>
            </div>
            <div class="c_b"></div>
1 共1页