Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
For a website is it possible to put all the images in a pool and every time a page is opened or refreshed it will draw 3 different images?
you can't randomized image with html , you have to use java script or css5 try this
window.onload = choosePic;
var myPix = new Array("images/lion.jpg","images/tiger.jpg","images/bear.jpg");
function choosePic() {
randomNum = Math.floor((Math.random() * myPix.length));
document.getElementById("myPicture").src = myPix[randomNum];
}
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
I have a homework and I can not seem to combine all HTML file to show as one file in browser. I am beginner! please help I have all my codes ready but they all open seperately.
I tried frame masterfile but could not get a hold of it
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 days ago.
Improve this question
As in the title. I searched but no luck. I have only solution how to create new map, add marker and send it in email, but this map is not saved in mymaps.google.com
I want modify map saved in mymaps.google.com
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am doing a project on the CO2 emissions of datacenters and want to incorporate my essay into a website with visuals. How could I go about creating a counter that counts up and adds a little image every time the counter goes up? Kind of like this website: https://www.internetlivestats.com/watch/co2-emissions/
You can use setInterval() or setTimout()
check out documentation
https://www.w3schools.com/jsref/met_win_setinterval.asp
var count=0;
setInterval(()=>{
count++;
//your logic here
},1000)//it will increment counter after 1 second you can change
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm trying to scrape for the images from a toy website and can't seem to figure out how. Please help. I'm using Nokogiri. Here's what I got so far:
webpage = Nokogiri::HTML(open(url))
section = webpage.css('div.category-products')
item_container = section.css('div.container-fluid.product-list-container')
item_list = item_container.css('.item')
list = item_list.css('.product-label-wrap')
image = section2.css('.image-product-list')
Here's the html tag:
enter image description here
You can get the element's attribute by using attr
image.css('img').attr('src')
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I need to scroll into element in puppeteer. How to achieve this ? And I tried to emulate mobile device to check for responsiveness
This is one way of doing it:
await page.evaluate(() => document.querySelector(selector).scrollIntoView());
Read more on it here.
You can also try:
await page.hover(selector);
which under the hood it uses the same functionality.