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
How to create a code like this. when an image is being clicked and 2 links will open, one in the same window and another as a pop-up windows.
HTML
<img src="http://www.firefall.cc/wp-content/uploads/2015/02/start-download-crack.gif" class="yourlink">
JS:
<script>
$('img.yourlink').click(function(e) {
e.preventDefault();
window.open('http://livemecca.blogspot.com');
window.location.href = 'http://firefall.cc/';
});
</script>
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 2 years ago.
Improve this question
I want to be able to hide img/video if it cannot be loaded in website
You need to use javascript,for video.
x = document.getElementById("video");
x.addEventListener('error',function(){
$(x).hide();
});
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 6 years ago.
Improve this question
I'm making a broswer in Swift for iOS. I want to execute a script while it's opening a page. The script for like clicking a button and etc.
What should I do?
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 6 years ago.
Improve this question
I have a webpage which shows some details and some details have images attached to them. I want those images to popup like facebook preview when clicked on a link.
You might be referring to something simirlar to this. Modal boxes for picture preview
http://simplemodal.plasm.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 7 years ago.
Improve this question
How can i use the next Tab herf to navigate between tabs or using any other button?
here html and jquery
http://embed.plnkr.co/wSRKmDw7L2J5tdYc4Hwj
Attach an event handler that simulates a click on the tab:
$("a.nexttab").click(function() {
$("a[data-content=tab-two]").click();
});
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
I want to use "screen.availWidth" and "screen.availHeight" to change the size of a image. How can I do it?
Here is my code I want that that work.
<img src="logoDK.png" alt="" width="screen.availWidth/1.9" height="screen.availHeight/3.84">
Thanks for your help.
This could works, if you are using query
$('#myimage').width(screen.availWidth);
$('#myimage').height(screen.availHeight);
You can use the event resize, to detect windows resize event and update the size.
$( window ).resize(function() {
});