Jump to content

php and java problem


ebchost

Recommended Posts

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
Share on other sites

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
Share on other sites

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

 

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

 

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.