treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] WEBSITE hiding links"?

  • Hey guys,

    Why isnt there any code for the download button on http://interfacelift.com/wallpaper/downloads/date/any/ in the sourcecode of the page? Is there a way for css to hide it? Im trying to retrieve the link ( that gets displayed when I hover over the download button with my mouse) from the sourcecode. This download button appears when you select a resolution from the dropdown list.

    Thanks.

  • There is a link, completely valid.

      <a href="/wallpaper/7yz4ma1/03192_deepbluenight_1440x900.jpg">
        <img src="/img_NEW/button_download.png" alt="Click here to download" title="Select your desired resolution from the menu to the left, then click here to download." align="center">
      </a>
    
  • then how come i cant find it after searching trough the sourcecode with ctr F?

  • If you are looking for the Download, you won't find it. It's an image.

  • Im looking for the code that you just posted. I cant find it in the sourcecode. Instead I see this:

        <div id="download_3192" style="float: right;"> 
              <img src="/img_NEW/button_download_disabled.png" alt="Select your desired resolution from the menu to the left, then click here to download." title="Select your desired resolution from the menu to the left, then click here to download." align="center" onclick="javascript:alert('Please select your screen resolution from the popup menu prior to clicking the download button.')" width="77" height="27" />
           </div>
    
  • I don't think we are talking about the same thing.

    Open the page with Chrome, Safari, or Firefox with Firebug installed, right click on the download button then click on Inspect.

    You'll see the code.

  • Ok. But why isnt it in the sourcecode of the page? (using view page source) Or better yet. How could I retrieve the link. You see I am writing in Java and I am able to connect and retrieve the page sourcecode, but the piece of code I need, the one you can find with inspect, is not in the page sourcecode itself. So Im wondering how I could retrieve that code.

  • @HugoGiraudel

    You see, you're looking at the DOM while the question is about the code producing that.

    @Reapaz1

    In the source code for the page, there's a script element linking to inc_NEW/jscript002.js. Look for:

    function imgload(base, foo, id)
    

    That javascript contains the code for generating the links.

  • @Benwalker Im trying to access that script, or see that function somewhere. How do I do that?

  • @BenWalker OK nevermind I got it : ) Firefox links you to the right directories :) so I clicked it. THanks!