Elxis CMS Forum

Support => Technical support => Topic started by: elpvn on August 28, 2008, 08:45:59

Title: Strange Error on the ELXIS template ???
Post by: elpvn on August 28, 2008, 08:45:59
Hello the communty !

I'm installed ELXIS on my site and place it on root folder by default. So normally it will work well, but sometime (just sometime) it's still show some strange error screen as my quote bellow:

Quote
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

A string literal was expected, but no opening quote character was found. Error processing resource 'http://www.cgezine.com/...

write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">&...

It's show in all theme I have test, not just on currently theme (CNN Inspired). So I post it here to hope anyone could help me solve them. I repeat that it not frequently but still appear in sometime, how to fix these error? anyone ? ....

Thank for help and support.  :-*

ELPVN
www.cgezine.com (Powered by ELXIS 2008)
Title: Re: Strange Error on the ELXIS template ???
Post by: datahell on August 28, 2008, 11:15:10
The problem is not on the template but on the javascript for the marquee you have on your site.

Steps to solve the problem:
Instead of "write" use "docoment.write"
Terminate all command by adding a ";" at the end.
Quote everything with double quotes if needed.
Use lowercase characters.

Example:
document.write('<ilayer width="'+marqueewidth+'" height="'+marqueeheight+"' name="ns_marquee" bgColor="'+marqueebgcolor+'">');
document.write('<layer name="ns_marquee2" left="0" top="0" onmouseover="copyspeed=pausespeed" onmouseout="copyspeed=marqueespeed"></layer>');
document.write('</ilayer>');

The problem might be because something is not supported by your browser. iframe and ilayer should be avoided if possible. Try to find a better scroller script.
Title: Re: Strange Error on the ELXIS template ???
Post by: elpvn on August 29, 2008, 04:51:40
Thank your reply !

Dear Datahell, i'm not work in the web design industry and i am an amateur in site code (:-[). So I attachment my theme index.php file here for help. Please help me to fix it. I am sorry for my idiot but i'm really not good in sourcecode.

Thank a million time for help, support and patience time.

ELPVN


Edit: When I change follow your instructions, it work fine except ... the scroller does not work  ???

[attachment deleted by admin]