ebchost Posted August 8, 2011 Share Posted August 8, 2011 filename: rotator.php <script> function CallPhp () { $('#News').fadeOut(100, function() { $('#News').load('modules/banner/banner_heder.php').fadeIn(100); }); } setInterval('CallPhp()', 1000); </script> i have empty web page as resolt, with no error and with no banners you can see resolt: http://www.sportskevesti.co/rotator.php You can check at http://www.sportskevesti.co that rotator module work exelent when refresh the page. 3 (similar) banners, one for hosting, one for joomla template in heder of the web page, 2 diferent banners in the right part of my web page Wer is the problem? Link to comment https://forums.phpfreaks.com/topic/244236-php-and-java-problem/ Share on other sites More sharing options...
WebStyles Posted August 8, 2011 Share Posted August 8, 2011 this is a javascript problem and not php, but anyway... what is $('#News') supposed to be? Link to comment https://forums.phpfreaks.com/topic/244236-php-and-java-problem/#findComment-1254447 Share on other sites More sharing options...
TeNDoLLA Posted August 8, 2011 Share Posted August 8, 2011 When I look the source code of the page you gave in that link. I see you have not included jQuery library at all. If you wanna use jQuery functions you need to include jQuery library file first. Also what is happening in banner_heder.php, are you returning anything from it (meaning you have to output the banner in there)? Using firebug you can see few JavaScript errors on that page. Link to comment https://forums.phpfreaks.com/topic/244236-php-and-java-problem/#findComment-1254460 Share on other sites More sharing options...
ebchost Posted August 8, 2011 Author Share Posted August 8, 2011 Quote this is a javascript problem and not php, but anyway... what is $('#News') supposed to be? believe me I do not know, I found an example on the internet but no good. I made this site www.sportskevesti.co and i (if you refresh page, you will see) I have already made a banner rotator system, but not good enough i want to refresh only div with baner and after this, i want to make news rotator with pictures and short description in same princips as banner rotator system Quote When I look the source code of the page you gave in that link. I see you have not included jQuery library at all. If you wanna use jQuery functions you need to include jQuery library file first. how to use JQuery liberary? i know to make PHP code only, this is first time i work with java script Quote Also what is happening in banner_heder.php, are you returning anything from it (meaning you have to output the banner in there)? Using firebug you can see few JavaScript errors on that page. banner_heder.php is file for banner rotation. I alredy use that file (include "banner_heder.php") in inde.php you can see it in top of the www.sportskevesti.co web page, and also in right side of the web page (i have output in index.php) Link to comment https://forums.phpfreaks.com/topic/244236-php-and-java-problem/#findComment-1254505 Share on other sites More sharing options...
ebchost Posted August 9, 2011 Author Share Posted August 9, 2011 Any help ? Link to comment https://forums.phpfreaks.com/topic/244236-php-and-java-problem/#findComment-1254856 Share on other sites More sharing options...
ebchost Posted August 12, 2011 Author Share Posted August 12, 2011 I finish news rotator )) Yo can see in this adres: http://www.sportskevesti.co thanks Link to comment https://forums.phpfreaks.com/topic/244236-php-and-java-problem/#findComment-1256523 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.