Highlighted

Loading an Image from URL String Variable?

Explorer ,
Jun 19, 2019

Copy link to clipboard

Copied

Hi everybody,

I have a situation where I have a gallery that we show internally with our work peeps. We want to be able to see this gallery with a particular tag showing before we post to the client. However, we don't want the client to see it.

So rather than adding and image tag for 7+ images then removing it everytime, I thought it'd be great if I could somehow access CSS to show and image from the URL string by adding a variable reference. Like...

www.mygallery.com/gallery.html&showIMGtagClass=true

Is that possible somehow if I have a CSS class referring to a <div><img></img></div> ??

Views

174

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Loading an Image from URL String Variable?

Explorer ,
Jun 19, 2019

Copy link to clipboard

Copied

Hi everybody,

I have a situation where I have a gallery that we show internally with our work peeps. We want to be able to see this gallery with a particular tag showing before we post to the client. However, we don't want the client to see it.

So rather than adding and image tag for 7+ images then removing it everytime, I thought it'd be great if I could somehow access CSS to show and image from the URL string by adding a variable reference. Like...

www.mygallery.com/gallery.html&showIMGtagClass=true

Is that possible somehow if I have a CSS class referring to a <div><img></img></div> ??

Views

175

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 19, 2019 0
Adobe Community Professional ,
Jun 19, 2019

Copy link to clipboard

Copied

Using a URL variable it would be possible to show/hide parts of the HTML, however, this could be added by those that are not supposed to see the tag thus nullifying the intended outcome.

There are many other ways of achieving what you want, but this is purely dependent on the application. Is it a PHP page?  Do you have a secured section?

To answer your question, we would need a lot more detail.


Ben

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 19, 2019 2
CCM19 LATEST
New Here ,
Jun 19, 2019

Copy link to clipboard

Copied

No, it's not PHP. It's entirely client-side. I'm using something called fancybox http://fancybox.net/

There's not a whole lot of security to be concerned with. It's a shared link showcasing ads amongst probably a dozen people and it's only up for a couple months. I post this same showcase page in a template for each one. So I'd have the URL for the template. If I could then add a URL variable for my team to add at the end to see an additional overlay (AdChoices) that would be great.

We don't want the client to see the AdChoices badge because they would get confused, but we like to see it so we can know where to position stuff. So if I could enter a URL like flipping a switch, that would be great.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 19, 2019 0