Results 1 to 11 of 11

Thread: Rollovers with php
      
   

  1. #1
    Moraldi is offline Corporal
    Join Date
    May 2008
    Posts
    17

    Default Rollovers with php

    Hi,
    I've create a simple page and I have place also, a rollover on it. I've place an HTML box with the following code:
    <?
    include 'apage.php;
    ?>
    Is it possible when the rollover has been clicked, to change the contents of the HTML box to this:
    <?
    include 'anotherpage.php;
    ?>
    Thanks!

  2. #2
    Moraldi is offline Corporal
    Join Date
    May 2008
    Posts
    17

    Default Re: Rollovers with php

    Ohh! that's nice, someone has changed the title of subject. Thanks!
    But I will appreciate it more if I could get a help :)

    It was changed to get Navals attention as he is the php guru.

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Rollovers with php

    It is possible using a layer and Javascript to change the inner_html of the layer div. BUT not on the fly, maning that you should
    1. Use php to include and store the two pages content in PHP variables.
    2. Preload all necessary images, if any images are included in these two pages.
    3. Pass the stored variables to Javascript, and use an event to change the div inner_html

    Requires rather advanced Javascript AND php knowledge.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  4. #4
    Moraldi is offline Corporal
    Join Date
    May 2008
    Posts
    17

    Default Re: Rollovers with php

    Thanks navaldesign for your response.
    I am afraid, I didn't ask the right thing. Java and php seems Greek to me!
    What I want is the updating part of my page with the contents of another html page when a button is pressed. I can image that this part could be an inline frame (not necessarily an HTML box).
    Is this possible with Blue Voda?

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Rollovers with php

    Yes, if you use an Iframe.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  6. #6
    Moraldi is offline Corporal
    Join Date
    May 2008
    Posts
    17

    Default Re: Rollovers with php

    But how I can change the contents of an Iframe after a click on a button ?

  7. #7
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: Rollovers with php

    If the button is on the main page & not part of the iframe itself, set the buttons link target field to the name you gave the iframe. By manually typing it in.

  8. #8
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Rollovers with php

    Of course, you need to create and publish the pages that will be displayed in the I-frame....
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  9. #9
    Moraldi is offline Corporal
    Join Date
    May 2008
    Posts
    17

    Default Re: Rollovers with php

    Thank you guys, but I still don't understand :(
    Please take a look:

    When the visitor clicks on the button 2, how the contents of the I-Frame will change?
    I need to display different I-frame contents, depending which button has been clicked.

  10. #10
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: Rollovers with php

    You have placed an iframe on the page & i will assume you named it if1. For the 3 buttons to make a page appear in the iframe you need to make up 3 new pages, P1, P2, P3, & publish them.
    Now on button number one enter a link as if you where going to P1, but also manually type in the target field if1. Preview page & test button 1. If ok! repeat on the other 2 buttons

  11. #11
    Moraldi is offline Corporal
    Join Date
    May 2008
    Posts
    17

    Default Re: Rollovers with php

    Ooohhhh!!! I see, the key is the target field...
    Thank you guys. You are the most beautiful guys all over the world...after me :)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49