Based on the forum picked, it looks like you are looking for a image slider or viewer that shows images randomly. If so, (even if not), the logic is to have a set of images and number them. Pick random number within the range 0 to total image count. Based on the number show that image. You can have a trigger of button or a timer to pick random numbers at intervals when needed.
I want to generate random numbers in js from specific set of numbers iteratively e.g:
generate random numbers from array of (2,3,4) excluding 1 and next time from (1,3,4) excluding 2 like that. I have used Math.floor and Math.random()but they generate the numbers from given range like(1 to 4). What if i want to exclude any number or want to generate number from given specific set of numbers??
i want popup web page and i want redirect the popup page
by main page please help me
for example when user inter the home page popup new page
and how can access info popup page in the home page
I've run into a rather interesting, and frustrating bug that I'm hoping someone has some experience with or can help me work around.
Here's the scenario, and I've also set up a fiddle to show it [^]
I have a div with data-location="1"
If I move this div like this
and then change the data-location value
I can no longer find the element using the data-location attribute.
This returns 0
This returns 1
BUT, this returns newValue
Has anyone ever run into this? Am I missing something here, or doing something wrong?
[EDIT: has some trouble with the fiddle, the link works now.]
Apparently the .data in jquery only reads the attributes once and never sets the attributes. If you want to set data- attributes and recall them in your code you have to use the .attr() call.
Second: Please give problem code and a description of what is going wrong. The post is almost as vague as "I have a problem with css, how do I fix it?" which tells us almost nothing.
Third: Welcome to web programming. When I started in 2000, no browser complied to the standard. Fast forward 13 years, and still we have variances even if things are vastly better now.
I suggest you read the post at the top of the forum, it gives guidance about how to ask a question.