Jump to content

Archived

This topic is now archived and is closed to further replies.

thara

How abt this????

Recommended Posts

there is a slideshow. cant you view it?????

Share this post


Link to post
Share on other sites

Nope.  Using Firebug, I see you have a couple JavaScript errors:

 

SyntaxError: unterminated string literal

http://www.lankainstitute.com/

Line 49

 

The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must to be declared in the document or in the transfer protocol.

http://www.lankainstitute.com/

Line 0

Share this post


Link to post
Share on other sites

Thanks for response... and tell me how can I fix this errors.... If I couldn't fix those errors, will it problem to my website???

Share this post


Link to post
Share on other sites

You should post your slideshow code in our JavaScript section.  It'll get more attention there.  And, yeah, not fixing it is a problem, since right now there's a gaping hole where the slideshow should be.

 

What browser(s) did you test with?

Share this post


Link to post
Share on other sites

The navigation's focus properties are terribly distracting.

Share this post


Link to post
Share on other sites

I have checked my website almost all modern browsers and couldn't get any errors. every browsers display my website correctly.. Then what has happen???

Share this post


Link to post
Share on other sites

As per the W3 Validator:

Errors found while checking this document as XHTML 1.0 Strict!

Result: 28 Errors, 6 warning(s)

I recommend fixing those first, then you might find that things will work a lot better.

 

PS: Why are you using   to simulate margins, when you're using CSS for everything else? Change that to CSS as well, and drop all of the entities from the code.

Share this post


Link to post
Share on other sites

Huh... figured out that my not being able to see it stems from the slideshow triggering my ad blocker.  Not sure why, as I don't normally have problems with JavaScript or slideshows in general.  Maybe it has to do where the images are hosted, or something about the slideshow script itself (a script from 2006 is ancient by modern standards.  look into jQuery and an extension for it like jQuery Cycle, or one of the others).  That said, the JavaScript and HTML errors remain.

Share this post


Link to post
Share on other sites

A javascript string can not span more than one line, unless you place a "\" at the very end of the line (no trailing spaces).

 

example:

document.write('<div class="advert slideshow" style="overflow: hidden; height: 0px;">\
<ul id="slideshow_1004">\
	<li><img src="images/slidshow/slide_image01.jpg" width="980" height="300" alt="" /></li>\
	<li><img src="images/slidshow/slide_image02.jpg" width="980" height="300" alt="" /></li>\
	<li><img src="images/slidshow/slide_image03.jpg" width="980" height="300" alt="" /></li>\
</ul>\
</div>');

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.