SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Member jon21021985's Avatar
    Join Date
    Aug 2005
    Location
    UK
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    show hide div when flash button is clicked

    Hi all, I am trying to change a div and hide another in the same place when a thumbnail is clicked the thumbnails are going to be flash, it's sort of a gallery for my portfolio....thanks...jon
    New Portfolio coming soon....

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,784
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi,

    I think this is really a javascript question and here is a basic hide and show although javascript is not my area.

    http://www.pmob.co.uk/temp/hideandshow6.htm

    I'm not sure how it will be affected by flash elements so I'll move the thread to the javascript forum so someone who knows what they are talking about can take a look.

  3. #3
    SitePoint Member jon21021985's Avatar
    Join Date
    Aug 2005
    Location
    UK
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi, thanks paul I have got the show hide div sorted now but i cant seem to get the flash button to run the command, anyone have any ideas? I think I may have to ask this in the actionscrip forum....thanks...jon
    New Portfolio coming soon....

  4. #4
    SitePoint Member jon21021985's Avatar
    Join Date
    Aug 2005
    Location
    UK
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css function with flash button

    hi all, I need to get a hide show div function working with a flash button, the link that is used in html is:

    <a href="#" onclick="toggleLayer('content1','content2','content3');return false;">Content1</a>

    so basically i need a flash button to do the same thing...thanks...jon
    New Portfolio coming soon....

  5. #5
    Pragmatic Programmer halfasleeps's Avatar
    Join Date
    Feb 2006
    Location
    Altoona, PA. USA
    Posts
    1,945
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im not sure what you are asking?? but toggleLayer() seems to be a javascript function you can call it form within flash like this:

    getURL("javascript:toggleLayer('content1','content2','content3');");

    HPH
    Altoona Design
    Freelance Flex developer for hire.
    ActionScript Programmer with 8 Years Experience.

  6. #6
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,784
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    I'll move the thread to the actionscript forum

  7. #7
    SitePoint Member jon21021985's Avatar
    Join Date
    Aug 2005
    Location
    UK
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi, thank you that works!
    New Portfolio coming soon....

  8. #8
    SitePoint Member jon21021985's Avatar
    Join Date
    Aug 2005
    Location
    UK
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just needed to use this actionscript for the flash button:

    getURL("javascript:toggleLayer('content1','content2','content3');");


    thank you all
    New Portfolio coming soon....

  9. #9
    Pragmatic Programmer halfasleeps's Avatar
    Join Date
    Feb 2006
    Location
    Altoona, PA. USA
    Posts
    1,945
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    solved:
    Last edited by Paul O'B; Sep 6, 2006 at 11:57.
    Altoona Design
    Freelance Flex developer for hire.
    ActionScript Programmer with 8 Years Experience.

  10. #10
    Pragmatic Programmer halfasleeps's Avatar
    Join Date
    Feb 2006
    Location
    Altoona, PA. USA
    Posts
    1,945
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    glad i could help
    Altoona Design
    Freelance Flex developer for hire.
    ActionScript Programmer with 8 Years Experience.


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
  •