Questions tagged as 'img'

1
answer

Image in src goes to background-image and does not resize

I am putting together a project for a friend of mine and I am using the scrolling page that divides the page into parts. In the first part I am putting a banner and a writing with the logo of my friend. The problem is that when I put the norm...
asked by 06.12.2017 / 15:57
3
answers

save external site IMG

Is it possible to save an image to a /imagens folder of an external site? I can save normal image if I right click and put "Save image as" , however I'd like to know how to do this in JavaScript or < in> PHP , I've inspected and the elemen...
asked by 02.03.2018 / 12:15
1
answer

AngularJS and Image Picker - I can not capture content from the picker

I have the following question: If I click on the picker (in the box), I can capture the contents of the ng-model "first game" and manipulate it in javascript as needed: <p>Escolha o jogo</p> <select class="image-picker show-...
asked by 02.10.2018 / 21:20
1
answer

What attribute use to put captions hidden in HTML (do not want in CSS) for the visually impaired?

I would like to put a caption hidden in an image using only HTML, but it is not the title of the image when I put the mouse over it, it is an attribute of the image, a legend that does not appear for normal users, but when a visually impaired is...
asked by 27.07.2017 / 23:37
4
answers

How to mount 3 'columns' CSS tile?

I'm having trouble putting the mosaic of the example below into the mobile version of my site The version in orientation:portrait should be something like this: .......................... . | . . Img 1 |...
asked by 31.01.2017 / 14:38
2
answers

___ ___ erkimt Img in changing header on each page load ______ qstntxt ___

I'm starting a new project in HTML5 and I would like to put a background img in the header, in vdd I want to put 4 images and I want them to change on every page refresh, I do not want a slider, site see an image and in each loading of the page img change. I'm starting the project now and have not done anything yet so I have no code to post. Does anyone know something similar?

    
______ azszpr256954 ___

If you use only JavaScript, I would suggest the following:

Rename background files with names with sequential numbers:

%pre%

Then after your %code% , call the script:

%pre%

Note: Because images will be called by random numbers, it may be that the same image is loaded after a new page load. If avoiding this is of importance , you can create a %code% to prevent the same image from being loaded again at the next page load. For this the code changes:

%pre%

SIMULATION

  

Code only for test without refresh on page. Use one of the codes   above.

In the example below, click the Refresh button to change the background of %code% :

%pre% %pre% %pre%
    
______ azszpr256951 ___

It can be with PHP as well. Try it

Put this in PHP:

%pre%

And this in css:

%pre%

Important, the name of the images should be "bg-0X.jpg" ok, if you want to add more imgs just put in the Array 'bg-05.jpg' and save the img in the folder.

[] 's

    
___

I'm starting a new project in HTML5 and I would like to put a background img in the header, in vdd I want to put 4 images and I want them to change on every page refresh, I do not want a slider, site see an image and in each loading of the page...
asked by 21.11.2017 / 00:57
0
answers

Pass value from console to page

The program reads text from this image " new_img.jpg ". It reads perfectly, only goes straight to the console. How would you bring this value to my page? The purpose is to verify that the text is the same as the one the user entered. NO...
asked by 01.03.2018 / 03:57
0
answers

Picking up an external website image and putting it in a div

Good afternoon, I'm still new to this business, but can you get an image of an external site and put it on my page? I have searched some functions like .load () ajax or in php with file_get_contents () I could get the image by direct link only a...
asked by 12.02.2018 / 18:47
0
answers

Forming a new image from an area map

Good afternoon, I'm doing a project where the company website is a synoptic and in this synoptic is generated images every 8 seconds. (obs: I still need to know a way to get these images and go to my project). What I did so far was a test with a...
asked by 23.01.2018 / 21:37
0
answers

img inside div does not appear when used canvas2image

I'm using a script to save a div in png. Within this div has one, but this image does not appear in the final result after saving. The code I'm using is this $(function() { $("#btnSave").click(function() { html2canvas($(".container-assin...
asked by 06.11.2017 / 19:25