Javascript in template

About the template and stylesheet - and changing the menu
Post Reply
morpheus
Posts: 16
Joined: Mon Feb 02, 2009 6:24 pm

Javascript in template

Post by morpheus » Wed Mar 28, 2012 10:20 am

Hi,

I have a javascript slider in the top of the page. In page, everything Ok. But when I log in, I can´t write or delete text, it´just freeze. But I can click to the menu. I just learn how some things work, so I think there is a problem in javascript. When I delete in template.htm javascript part and upload it in the server, then it´s Ok, I can change text (write and delete).

Now I have written in this way:

after <head></head>

Code: Select all

<body bgcolor="#ffffff" topmargin="0" background="<?php echo $pth['folder']['templateimages']?>bybloo-bk.jpg" style="background-repeat: repeat-x"<?php echo onload();?>>
<link href="/cms/templates/bybloo/stylesheet.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="/cms/templates/bybloo/css/coin-slider.css" />
<script type="text/javascript" src="/cms/templates/bybloo/js/cufon-yui.js"></script>
<script type="text/javascript" src="/cms/templates/bybloo/js/droid_sans_400-droid_sans_700.font.js"></script>
<script type="text/javascript" src="/cms/templates/bybloo/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/cms/templates/bybloo/js/script.js"></script>
<script type="text/javascript" src="/cms/templates/bybloo/js/coin-slider.min.js"></script>
<table width="995" border="0" align="center" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="template.png" fwbase="template.jpg" fwstyle="Dreamweaver" fwdocid = "1326404034" fwnested="0" -->

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Javascript in template

Post by cmb » Wed Mar 28, 2012 10:53 am

Hi morpheus,

I guess there's a name collision between the editor JS and the other scripts. Have a look at the JS error console. What does it say?

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply