Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Please can someone point me in the right direction - ddsmoothmenu missing image

  1. #1
    Join Date
    Jul 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Please can someone point me in the right direction - ddsmoothmenu missing image

    1) Script Title: Smooth Navigational Menu (v2.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...smoothmenu.htm

    3) Describe problem: http://napcomputersolutions.co.uk/index.html

    If you take a look at the above link, you will notice that next to each header of the menu there is what appears to be a missing image. I cannot work out where it is trying to pull this image from.

    I have a feeling it is trying to pull in one of the arrow gifs but i've placed them in both the same directory and the images directory and this doesnt appear to have resolved the issue.

    It would be great if someone could help me out. I can supply codes but not sure exactly which file is calling this link.

    Thank you for your help in advance.

    Regards

    Neil
    Last edited by james438; 07-30-2013 at 04:32 PM. Reason: Formatting

  2. #2
    Join Date
    Jul 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Don't worry about formatting or colours its just a test site.

    Looks like the issue only happens on Safari and Chrome

  3. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Your page is in violation of Dynamic Drive's usage terms, which, among other things, states that the credit notice inside script must stay intact. Please reinstate the notice first.


    Also, please provide the link to the script demo page on DD so we can easily see which script you're working with.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  4. #4
    Join Date
    Jul 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Thank you

    An ex colleague originally set this up, so i apologise with regards to the missing content i will get this re-added

    attached is the style.css sheet
    Attached Files Attached Files

  5. #5
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    No worries - open this file; "wp-content/themes/figero/js/ddsmoothmenu.js", and scroll down to the Global Configuration Options. Look for the line that defines arrowimages, and just add a slash at the start of the image path - so, '/images/down.gif' and '/images/right.gif' instead of 'images/down.gif' and 'images/right.gif'. And to load in the changes, make sure you do a hard refresh (CTRL+F5 in Windows)
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  6. #6
    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 that doesn't help (probably won't), add this to one of the stylesheets:

    Code:
    #menu li a:after {
    	content: none !important;
    }
    like to the http://napcomputersolutions.co.uk/style.css file.

    And while you're at it, you probably will want to add this as well:

    Code:
    #menu .ddsmoothmenu li li {
    	background-color: rgb(36, 36, 36) !important;
    }
    Oh, and you should add a standards invoking DOCTYPE like:

    Code:
    <!DOCTYPE html>
    as the first thing in the page's source code.

    The browser cache may need to be cleared and/or the page refreshed to see changes.
    Last edited by jscheuer1; 07-31-2013 at 02:11 AM. Reason: tried it out
    - John
    ________________________

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

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

    napcs (07-31-2013)

  8. #7
    Join Date
    Jul 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thank you Beverley and John.

    Unfortunately making an amendment to the ddsmoothmenu.js didn't resolve the issue, but thank you for the advice.

    John, your solutions worked perfectly and I've implemented all of your changes, i really appreciate that.

    Now just got to work out how to get highlight the menu for the page that I'm on, and remove the images from the footer in the same way!! Thank you both for your quick responses.

  9. #8
    Join Date
    Jul 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question

    Thank you for your help its been a godsend!!

    Would it be possible to ask 2 further questions.

    Still using the page

    http://www.napcs.co.uk/index.html

    You will notice that when you use the header ddsmoothmenu that wherever the mouse hovers the text changes to orange which is great. Can you make the header also be highlighted or change colour to make it obvious to the user which menu they are hovering over?

    As an example if you hover over IT Support and then filter down to Business IT Support. Business IT Support will be orange which is great but can we also do someithing with the words IT Support?

    Finally last question at the bottom of the page in the footer there are missing images next to the headings, could you tell me how i get rid of these i cant find them in the code?

    Thank you ever so much for your help, love the menu!!!
    Attached Files Attached Files
    Last edited by jscheuer1; 07-31-2013 at 03:22 PM. Reason: Format

  10. #9
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    To keep the parent <li> highlighted when a child is hovered over;
    Code:
    #menu ul li:hover > a {
    background:red; 
    }
    Although, as John already said, you must make sure that a standards invoking doctype appears as the first thing in your markup. Your page currently looks like this;
    Code:
    <html>
    <!-- http://napcomputersolutions.co.uk/ -->
    <!DOCTYPE html>
    <html lang="en-US">
        <head>
    But is should just look like this;
    Code:
    <!DOCTYPE html>
    <html lang="en-US">
        <head>
    I've tested my CSS above and it will not work until you fix the doctype as indicated.

    As for the broken images in the footer - the stylesheet is only showing this;
    Code:
    .footer h5:after { content: url(); }
    So I would guess that the images paths are probably being generated dynamically in a php file somewhere - I cant say where exactly because that's the nature of a dynamic file. You could try doing some more detective work in your template files (or ask at the Wordpress forums) to locate what/where they are and then replace them with a blank gif/png or a jpeg that matches the background colour. Or can you delete the code that is generating the CSS block from the stylesheet (if that's what is happening)? If you can't remove that block from the stylesheet completely, how about editing the HTML to change the heading tags in the footer from <h5> to <h6> maybe, and then apply some styles to match them to the way they currently look? Its a bit of a workaround/cheat, but if the tags aren't there in the markup, the CSS (dynamically generated or otherwise) can't be applied to them.
    Last edited by Beverleyh; 07-31-2013 at 12:39 PM.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  11. The Following User Says Thank You to Beverleyh For This Useful Post:

    napcs (07-31-2013)

  12. #10
    Join Date
    Jul 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thank you Beverley, that is spot on. Worked like a dream and you saved me a lot of pain with that solution.

    Also I just removed the lines you mentioned calling the image and that worked.

Similar Threads

  1. a image point to document text sizer script combine
    By paldo in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 08-13-2012, 10:32 AM
  2. Image Description is Missing
    By kuau in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 05-01-2009, 01:15 AM
  3. Replies: 3
    Last Post: 03-12-2009, 01:52 PM
  4. Replies: 2
    Last Post: 07-09-2008, 09:23 PM
  5. Please point me in the right direction
    By webtrader in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 09-06-2005, 12:06 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
  •