SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    change images in js

    Hi, this is relate to switch images, let say that i have two php files, and each files has one images called (red-images.png and yellow-images.png).

    I'm trying to create switch program in php using two buttons of (red and yellow) buttons, and any time i click on that of those two buttons it will change images.

    I'm using included statments
    Code:
    (<?php include(); ?>)
    to put
    Code:
    <?php include('yellow.php'); ?>or <?php include('red.php'); ?>.
    My question is that how do i can write that in javascripts and php code to allow to develop switch images buttonsbetween red.php or yellow.php in index.php page using two of those buttons using
    Code:
    <?php include(); ?>!
    please help thanks.

    AM

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,107
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Please don't make multiple posts on the same topic.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •