|
2018-02-10, 09:43 AM | #1 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
New HTML Coding For Images - Why?
I use a Chrome Extension called Image Downloader which is EXTREMELY helpful when you want to grab the image of a movie to make a thumb & right click/save image as doesn't work. But lately it stopped working on a couple of sponsors, so I had to do it the hard way (view source, find the URL of the image, select the URL, right click, select go to...) and when I did, I saw this:
Score Cash - http://www.xlgirls.com/bbw-videos/Mi...LjAuMC4wLjAuMA Code:
<div id="holder_57707" class="flowplayer minimalist" data-native_full="true" style="background-image:url('//cdn.scoreuniverse.com/modeldir/data/posting/57/707/posting_57707_x_800.jpg');background-size:cover;"> Code:
<video preload="none" id="player1Q5rxAU0xxE7" class="video-js vjs-default-skin" controls width="auto" height="auto" poster="//images.nubilefilms.com/films/cum_for_me_with_haley_reed/samples/cover1280.jpg"> My 1st thought was that, after asking Mojo about going https yesterday & being advised that calling images from non-secure URLs would set off an alarm, this might be a way around that. But while the Nubiles example isn't secure: Works: http://images.nubilefilms.com/films/.../cover1280.jpg Doesn't Work: https://images.nubilefilms.com/films.../cover1280.jpg The Score Cash example work either way: http://cdn.scoreuniverse.com/modeldi...7707_x_800.jpg https://cdn.scoreuniverse.com/modeld...7707_x_800.jpg That still could be why it's being used, but, as usual, I defer to those that are more tech savvy than me |
2018-02-10, 11:10 AM | #2 |
Internet! Is that thing still around?
|
Those are called protocol-relative urls. They will automatically load either from http or https depending if you use the secure version of the website or not.
If you put a http image on a https page you will get a security warning and the image wont load. |
2018-02-10, 11:49 AM | #3 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
So is that a workaround where you can load an image from a non-secure URL onto a secure page?
|
2018-02-10, 03:28 PM | #4 | ||
Asleep at the switch? I wasn't asleep, I was drunk
Join Date: Apr 2005
Posts: 214
|
They are scheme relative urls.
https://stackoverflow.com/questions/...-relative-urls Quote:
This article references an article from 2010 telling people to use scheme ralative but was updated in 2016 to tell you why it is bad to use them: https://jeremywagner.me/blog/stop-us...-relative-url/ Quote:
. |
||
2018-02-10, 04:07 PM | #5 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
Thank you!
|
2018-02-10, 05:07 PM | #6 |
Lonewolf Internet Sales
|
I assume you're pulling images from a different domain than the source page. If not, just use relative rather than absolute links.
|
2018-02-10, 06:27 PM | #7 | |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
Quote:
<img src="file:///C|/domains/nationalnet/greenguy1/link-o-rama.com/greenguy/graphics/greenguy.gif" width="54" height="40" border="0"> |
|
2018-02-10, 09:33 PM | #8 |
Lonewolf Internet Sales
|
Not what I was saying...
Let's say the web page is in the root directory of https://www.greenguysite.com (could be http:// as well) If the images are stored in a folder named images then a relative image URL would looks like: Code:
<img src="images/picture.jpg"> Code:
<img src="https://www.greenguysite.com/images/picture.jpg"> Last edited by Toby; 2018-02-10 at 09:36 PM.. |
2018-02-10, 10:08 PM | #9 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
Oh, I knew what you were saying lol. I was just patting myself on the back for not using <img src="https://www.greenguysite.com/images/picture.jpg"> while pointing out an old newbie mistake that we used to see ALL the time back in the day
|
|
|