Results 1 to 6 of 6

Thread: to know img src

  1. #1
    Join Date
    Jun 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default to know img src

    I have read the "script jQuery Context Menu" to display the menu on the image.
    It is very helpful.

    in my case, I want the href of the menu itself is img src ...


    please the answer ...
    thx...

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Quote Originally Posted by suvi_7888 View Post
    I have read the "script jQuery Context Menu" to display the menu on the image.
    It is very helpful.

    in my case, I want the href of the menu itself is img src ...


    please the answer ...
    thx...
    this?

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.


    Also,
    Your question is unclear. What, exactly, do you need help with? Please be as specific as possible.

  3. #3
    Join Date
    Jun 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by traq View Post
    this?

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.


    Also,
    Your question is unclear. What, exactly, do you need help with? Please be as specific as possible.
    yups...
    jQuery Context Menu script

    I want the href of the menu itself is img src

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    I want the href of the menu itself is img src
    do you mean you want the menu to hold a link to the image it's attached to?

    Simply put the image uri into the link in the menu's markup:
    HTML Code:
    <ul id="contextmenu1" class="jqcontextmenu">
         <li><a href="path/to/image.jpg">View Image</a></li>
    </ul>
    or am I not understanding your question correctly?

  5. #5
    Join Date
    Jun 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by traq View Post
    do you mean you want the menu to hold a link to the image it's attached to?

    Simply put the image uri into the link in the menu's markup:
    HTML Code:
    <ul id="contextmenu1" class="jqcontextmenu">
         <li><a href="path/to/image.jpg">View Image</a></li>
    </ul>
    or am I not understanding your question correctly?
    example:
    HTML Code:
    <img src="path/img1.jpg" /><br />
    <img src="path/img2.jpg" /><br />
    <img src="path/img3.jpg" /><br />
    if the mouse right click on each image, the menu is only one, namely the address of the image...

  6. #6
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    you can create a context menu for each image. if you give each menu a different name, they won't conflict with each other.

  7. The Following User Says Thank You to traq For This Useful Post:

    suvi_7888 (06-13-2011)

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
  •