PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, July 18, 2022

[FIXED] How to grab images from folder and post direct links using javascript

 July 18, 2022     gif, google-chrome-extension, javascript     No comments   

Issue

Quick question: I'm trying to create a chrome extension that has gifs, I would like to grab those gifs from a folder on my server. How can I grab gifs from that folder and post them as gifs dynamically?


Solution

Basic HTML :

<img id="dynamic" src="" alt=""/>

JavaScript :

document.getElementById('dynamic').src = '/image/path.gif';

Jquery :

$('#dynamic').attr('src', '/image/path.gif');


Answered By - Shikkediel
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing