0
Welcome Guest! Login
0 items Join Now

the blank.png thing with images

  • the blank.png thing with images

    Posted 18 years 3 months ago
    • I noticed in the template, that all of the images had a blank.png covering them so they couldn't be right clicked and downloaded. Really liked that, and was wondering if there is a way to carry that over into pictures I use in my content? Although, one thing I did notice is..if you have firefox and the web developer toolbar, and you hit images > view image information , it seems to show all the pictures you use on your site anyways. Any thoughts on that?

      Thanks,
      David Henderson
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: the blank.png thing with images

    Posted 18 years 3 months ago
    • actually the main purpose of the blank.png is that it allows the image to be styled via a css background element. IMG is a rather strange html tag, the src="" element cannot be changed in css, so the one way to change what an image is displaying via css is to use a transparent image and then set the bg on the image to the url of your choice in css.

      You can do the same thing in your content tho if you want to use the 'image protection' effect this has. it's a bit tedious though, as you would first have to put the image with blank.png in the src="" part. Then add a class so the end is something like:
      <img src="images/blank.png" class="vacation1" alt="vacation1" />

      then in your css put:
      img.vactaion1 {
      width: 300px;
      height: 200px;
      background: url(images/stories/vacation1.jpg);
      }

      hope this helps
  • Re: the blank.png thing with images

    Posted 18 years 3 months ago
    • Ok, thanks! Will try that. Had a question for you that came up lastnight when I ran a simulator spider crawl on my site. It said that I lost points because there was no H1 text on my site and that I lost points for the body text because there was only a few words in it. In the body text it showed my page title instead my body text. I used the elixir template as a guide for creating this template. Any ideas on that?

      Thanks,
      David Henderson
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: the blank.png thing with images

    Posted 18 years 3 months ago
    • well, you need to create some decent content and use header tags. I'm afraid the template only lays out a design, but how you layout the content is up to you.
  • Re: the blank.png thing with images

    Posted 18 years 3 months ago
    • I had a home page layed out,, and that is what is crawled, that's why it confused me that it said I only had a few words of text in the body. Then when I looked at it, it was reading the page title as the body. Wasn't sure if it was something I had done wrong, or if something in the index.php confused it. Am trying to figure out exactly what is the cause now:) Of course, there is always the chance that the site I used to do the simulated crawl is not setup right also:) Used http://tools.summitmedia.co.uk/spider/ for that. Anyways, was just something I thought you may have overlooked and thought I'd bring to your attention. Hadn't spent the time to try and figure out exactly what the problem is yet...am doing that now:)

      Thanks,
      David Henderson
    • Last Edit: 18 years 1 month ago by William E Dooley.
  • Re: the blank.png thing with images

    Posted 18 years 3 months ago
    • I would be interested in hearing more about this issue from those in the know. I have also found that the crawlers are not seeing the article text as content or body text. So it appears that all the writing done to try and have high keyword density is not having any affect on ranking with the crawlers.

      or am I not understanding something????

      Thanks to all!
    • Carl Johnson

      “An investment in knowledge always pays the best interest.”
      -Benjamin Franklin
  • Re: the blank.png thing with images

    Posted 17 years 6 months ago
    • Andy Miller wrote:
      actually the main purpose of the blank.png is that it allows the image to be styled via a css background element. IMG is a rather strange html tag, the src="" element cannot be changed in css, so the one way to change what an image is displaying via css is to use a transparent image and then set the bg on the image to the url of your choice in css.

      You can do the same thing in your content tho if you want to use the 'image protection' effect this has. it's a bit tedious though, as you would first have to put the image with blank.png in the src="" part. Then add a class so the end is something like:
      <img src="images/blank.png" class="vacation1" alt="vacation1" />

      then in your css put:
      img.vactaion1 {
      width: 300px;
      height: 200px;
      background: url(images/stories/vacation1.jpg);
      }

      hope this helps

      I deleted the blank.png and cannot find another one. And my logo wont change, even though I uploaded a different logo in the syle1 folder of elixir 2.0
      www.short-term-web-works.net/marine/

Time to create page: 0.057 seconds