Jul 23, 2005
I will show you how to get rid of <a> tags to put links on pictures.
When you want to put a link to another page on a picture, you type this
kind of HTML code :
<a href="page.html" style="text-decoration:none;" alt="funny things....">
<img src="img12.gif" alt="funny things ..." border="0"></a>
But when you click on the image, you can see a dotted border around it.
If you type this instead :
<img src="img12.gif" alt="funny things ..." border="0"
onclick="this.location='page.html'" style="cursor:hand;">
I think it is better, especially when you have frames in your website.
View 2 Replies
ADVERTISEMENT
Jul 16, 2011
On my website, I have random logos appear on the home page as products that I recommend. I would like to make these logos into links to the website they are from, so that when one clicks on the picture, it directs you to the site, but I can't quite get it to work, and I know very little about Javascript (as you may know from my previous question about Javascript).
Here's my current JS code:
<!--
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
[Code].....
View 6 Replies
View Related
Dec 2, 2010
I have a rotating picture set up on my site, and I would like to have external links connected to each of the pictures. So far, the rotating pictures work fine, but there is no link to be found. Here is my code:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-16720691-1']);
[code]....
View 1 Replies
View Related
Mar 22, 2009
on the top of the page with the pictures scrolling with news and links inside of them without using flash. like with ajax or something? and if it can be done... how would i go about it?
View 2 Replies
View Related
Sep 1, 2010
I am looking for a upload form to upload pictures and then when the pictures are uploaded, then they get emailed to me. Kind of like a contact form but attached is the pictures.
View 1 Replies
View Related
Dec 15, 2011
Can't seem to make it work, I have seen many examples but they are all just for 1 div tag. When i trymore than one it doesn't work anymore.The first one works, if i have more than 1 then the other don't work.
using the following jquery
$(document).ready(function(){
$("#toggle-text").click(function () {
var divvalue= this.value;
[Code]....
View 1 Replies
View Related
Dec 28, 2010
I use Firefox and am wondering how to select a word and wrap [b] tags or [quote] tags around it?
View 30 Replies
View Related
Jul 12, 2010
Is it possible to trigger the action of a form with a submit button that's outside the form tags? If so, how should this example be rescripted to make the input tag work outside the form tags?
View 3 Replies
View Related
Apr 30, 2010
I am new to jquery, and love it so far, but I am more of a designer, not a developer. I am learning jquery to enhance my sites, and I am having a problem figuring out buttons.
I have them working in firefox and safari, but in IE links do not work.
Here is the script I have, and the button code.
View 1 Replies
View Related
Aug 26, 2009
My menu navigation(Home, Hosting Solution, etc..)
1. The submenu links need to be centered in the middle of the div instead of aligned to the left.
2. Can the submenu links have a rounded box appear under them, instead of being underlined links. Like these at the top: [url]
3: The top tab needs to stay gray/active/on when the mouse is moved down to the submenu or when it is the active button.
Here is the link of the site [url]
View 2 Replies
View Related
Mar 10, 2010
I'm using jquery/ajax to create some links with window.open method. Here's the relevant code:
$("#content").empty();
$.ajax({
type: "GET",[code]..........
Basically, when you click a link a function is called with a parameter based on the particular link you run. Then the code runs through an xml file, and if the parent of the nodes I've cyling through has a value equal to the parameter past to the function, that node is used to create a new link with window.open function attached to it.It all works, or seems to, and when I alert what is being built, it looks right to me, yet the links don't work.I've attached a copy of one of the alerts of one of the links as it's built.
View 5 Replies
View Related
Nov 28, 2010
I have an image wrapped inside a link tag.<a href="somepage.html"><img id="content" src="img/some.gif" /></a>
I want this .click target to be the link: $('a').click(function(e){
Instead, the target returned is the image [HTMLImageElement].
I have tried using closest()and currentTarget:
But they all still return the image, not the link.
View 2 Replies
View Related
Aug 7, 2005
I'm new at Javascript, and have written a script for a series of random
roll-over button images, but one thing I would like to add is a function
that checks to make sure that there are no duplicates in the randomly
generated variables that choose the pictures.
Can anyone give me a hand with this? One other thing I can't seem to figure
out is how to manage the "onLoad" aspect of caching my roll-over images (DW
has locked the <body onload> function into a template, so I can't mess with
it...). so my rollover graphics are grabbed from the server in "real time"
during mouse-over, which is a bit "goofy" and "slow" in terms of instant
rollover effect. I'm sure that there is a much more efficient way of doing
this, but I've been able to learn a lot by tweaking DW's way of doing
things, so it's not a total loss.
In an external JS file, I set up a series of 10 random variables using the
Math.random and Math.round functions like so:
var btn0 = Math.random()*100;
btn0 = Math.round(btn0);
var btn1 = Math.random()*100;
btn1 = Math.round(btn1); .... etc for 10 buttons
Then in my page, I piggy-back onto Dreamweaver's built-in roll-over
handlers, like so (to write the instances of each rollover image);
<script>document.write('<a href="link1.htm" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('pic1','','images/btns/'+btn0+'b.jpg',1)"><img
src="images/btn/'+btn0+'a.jpg" name="pic1" width="80" height="100"
border="0"></a>');</script>
For this particular page, I'm pretty much stuck with DW's coding because
it's locked into a template that governs my site navigation. Thanks for any
pointers or help ...
View 4 Replies
View Related
Jul 20, 2005
What is the javascript for reloading images upon the loading of each
page on a website. Also, how do I implement this in the HTML.
View 3 Replies
View Related
Mar 10, 2011
Should I just make this a small video, or will JS be able to handle around 25 pictures without being really slow?
View 1 Replies
View Related
Mar 15, 2006
Is it possible to rotate pictures 45°CW for each click using javascript?
View 1 Replies
View Related
Oct 20, 2010
do ya know an efficient way to get the coordinates of a pictures so that I can use them to create a map? It is a rectangle. Here is the code I set up for a page:
<HTML>
<HEAD>
<TITLE>Cyrus</TITLE>
</HEAD>
<BODY BGCOLOR=black>
<div align="center">
<table border="0"; cellspacing="0"; cellpadding="0">
[Code]..
View 26 Replies
View Related
Jul 23, 2005
I have this list of pictures;
<script type="text/javascript">
var picssigs = new
Array("sigs/finished1.jpg","sigs/foghorn.jpg","sigs/motto.jpg","sigs/sig.jpg","sigs/SWAT.jpg","sigs/title.gif");
var pictsigs = Math.round(Math.random()*(picssigs.length-1));
for (var i=0; i<picssigs.length; i++) {
var imgsigs = new Image();
imgsigs.src = picssigs[i];}
How do I display these pictures like;
<pic1> <pic2> <pic3> ...etc...
<pic4> <pic5> ...etc...
View 3 Replies
View Related
Jan 12, 2006
Is there some way in JavaScript to stop the downloading of pictures from a
web page?
View 23 Replies
View Related
Jun 15, 2006
I wish to access several pictures on my page by defining them as an array. This way I can either loop through them or access them by array index.
What I am really doing is writing my own picture gallery and slide show. The reason I am doing this is so that I can have my web page look exactly the way I want. In addition, it is an excellent way to learn Javascript.
View 2 Replies
View Related
Dec 23, 2006
I build my first Drag & Drop with JavaScript and I would like to drag
the pictures when I click on it.
When I create a normal div tag with some text the script works, but
when I put a image in the div tag it works not correctly.
Here is my Code... I integrated three pictures and one text, then you
can see the differences.
a part of my html site:
View 2 Replies
View Related
Mar 14, 2009
I just spent 3 hours analyzing tons of lightboxes, image galleries, jQuery plugins. Now I'm a bit frustrated.I don't want a snazzy animation effect.I don't want a pre-made layout.This is what I want:On page load, 12-15 bigger images are preloaded into browser cache.Div#container contains a default image.When user clicks a thumbnail link, the corresponding (bigger) preloaded image shows inside #container.
View 1 Replies
View Related
Aug 10, 2009
i have my folder with index page in named "tester_fixed.html" and then a folder for images where i have place header1 header 2 and header 3 . i downloaded a script from [URL] and edited my images in and i think i mucked up as they are not showing.
the code:
<script type="text/javascript">
// Flexible Image Slideshow- By JavaScriptKit.com (http://www.javascriptkit.com)
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
[Code]....
View 2 Replies
View Related
Feb 9, 2010
i look everywhere for html and Java snip its and all seem to be different, can somebody please tell me how to code something like this,also can the code be easy ish for example.if show is 5pm till 6pm an image appearsif show is 6pm till 7pm an image appears
View 2 Replies
View Related
May 18, 2010
I am using a jquery gallery slideshow on my homepage and I am having an issue where the images loaded before the dom is loaded causing the images to display in an ugly stack.
I combated this a bit by setting a height on the div and setting the overflow to hidden. however you can still see the unstyled stack of images within the small div for a couple of seconds before the page is loaded.
the code to start the javascript is:
<script type="text/javascript">
$(document).ready(function(){
$('#photos45').galleryView({
panel_width: 980,
[Code]....
I have a feeling that this has something to do with the .ready function maybe it should be something else? You can see this in action here:
[URL]
View 3 Replies
View Related
Dec 20, 2011
Im trying to edit a homepage for a friend of mine. He wants the page to have a table of 12 total pictures that randomly rotate on refresh.i found this code that refreshes the pictures:
<script type="text/javascript">
<!--
var rand=Math.round(Math.random()*1);
[code]....
View 4 Replies
View Related