Results 1 to 3 of 3

Thread: One click - two actions

  1. #1
    Join Date
    Apr 2011
    Posts
    82
    Thanks
    43
    Thanked 0 Times in 0 Posts

    Default One click - two actions

    Hello,..
    I am looking for help about how can make one click on the two links that effect on two scripts.This is about "onclick="include_video"..and "onclick="slidedown_showHide('box1')".

    I making the video system with other script.It is no easy,I am understand,but I hope from someone help about that.
    I will try explain,..in this PAGE you will see small blue picture,..when mouse over it,..will be see links for example some singers,..and and this singers picture has some links of songs.
    So,When I click one link-song,..it open new video right,and under small picture has small red color light.This is for closing singers picture.It working good,..but I want move out this small red light,..I want,when I click some link-song on singers picture,that return on blue picture when was start.

    So I am not need red light for closing,..so when I click some link-song,..it going in beginning to show empty blue picture.This is one click,making two action.

    This is code for example:

    Code:
    <a href="javascript: void(0)" onclick="include_video('http://www.youtube.com/v/FKV2oeS4vw8?version=3&rel=0&autoplay=1&showinfo=0&start=0&autohide=0')">
    
    <a href="#" onclick="slidedown_showHide('box2');return false;">
    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If they both worked separately, this is how to combine thrm:

    Code:
    <a href="#" onclick="include_video('http://www.youtube.com/v/FKV2oeS4vw8?version=3&rel=0&autoplay=1&showinfo=0&start=0&autohide=0');slidedown_showHide('box2');return false;">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    rexi (09-03-2012)

  4. #3
    Join Date
    Apr 2011
    Posts
    82
    Thanks
    43
    Thanked 0 Times in 0 Posts

    Default

    Hello John,..
    You are genius.Now working perfect... THANK YOU very,very much !!.

    ( Also thanks to "Molendijk" for his machine video system which I using with other scripts combination).
    Last edited by rexi; 09-03-2012 at 11:34 PM.

Similar Threads

  1. Asp Form With Three Actions on Submit
    By dubosegriffin in forum ASP
    Replies: 1
    Last Post: 02-02-2011, 09:15 PM
  2. Onclick multiple actions?
    By harlem in forum JavaScript
    Replies: 2
    Last Post: 01-22-2010, 11:49 AM
  3. ToolTip - Multiple Actions?
    By wildpeacockstudios in forum Dynamic Drive scripts help
    Replies: 7
    Last Post: 05-12-2008, 03:48 PM
  4. 2 actions in 1 link
    By tp4fp in forum JavaScript
    Replies: 1
    Last Post: 01-15-2008, 09:30 PM
  5. Form actions
    By paul_moss in forum JavaScript
    Replies: 2
    Last Post: 08-10-2006, 12:50 AM

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
  •