Results 1 to 6 of 6

Thread: How to enlarge the pictures using mouse through coding

  1. #1
    Join Date
    Oct 2010
    Posts
    88

    How to enlarge the pictures using mouse through coding

    Hey I am developing my own website using html and javascript language. This is the first time that I have ever developed any website and I have learned too many new things using while making this website. However I would want to know that how can I make a photo enlarge by dragging my mouse cursor of the picture through the coding. I would want to the methods or any function that are used in the coding to make this thing possible. I would be very thankful for whoever comes up with this solution as it will help me to make my site to look even better. Please provide some easy and fast method as I am in a hurry to complete this website.

  2. #2
    Join Date
    May 2009
    Posts
    637

    Re: How to enlarge the pictures using mouse through coding

    Hey you can try this out and see if it works for you, I haven't tried this out myself so I wont be able to tell you whether this thing works or not. But hey why don't you give it a try and see if it works.

    Code:
    <script language="javascript" src="/filesearchhover.js" type="text/javascript"></script>
    onmouseover="showtrail('http://www.google.com/file_thumbview_approve/64097/2/istockphoto_64097_dirty_metal_grate.jpg','Dirty metal grate','Dirty metal grate','3.0000','0','1',203);"
    onmouseout="hidetrail();"
    The above sentence is based on the parameters like showtrail(imagename,title,description,ratingaverag e,ratingnumber,showthumb,height) , so based on this the image gets load and the mouseover and the mouseout function will help you to scroll up and down.

  3. #3
    Join Date
    May 2009
    Posts
    511

    Re: How to enlarge the pictures using mouse through coding

    Hey you can use the javascript coding to enlarge the image using the mouse, by setting the the onScroll method with the image you want to make it large or small using the mouse. The coding is something like this <img src="photo.jpg" onScroll="window.location=src">. You can try this kind of coding in various format that will help you to get whet you want.

  4. #4
    Join Date
    May 2009
    Posts
    543

    Re: How to enlarge the pictures using mouse through coding

    Hey I have the coding for your solution, I was also looking for doing the same thing when I was developing my website and after searching everywhere I got this one which gradually worked for me. The code is as follows.
    Code:
    <script>
    Function SwapImage1() {
      document.photo1.Src="images/353.Jpg"
    }
    Function SwapImage1Back() {
      document.photo11.Src="images/353_small.Jpg"
    }
    </script>
    <body>
    <div align="center">
    <img src="images/353_small.Jpg" name="photo1" border="0" onMouseOver="SwapImage1()" onMouseOut="SwapImage1Back()">
    </div>
    The method mouseover and moseout are used to make this thing possible, the two functions contains the same image but with different sizes. I think this should work for you as it worked for me.

  5. #5
    Join Date
    Oct 2010
    Posts
    111

    Re: How to enlarge the pictures using mouse through coding

    Hey I am also looking for the some code that will help me to make the text blink. I have tried various sources to find out the solution but I am not able to get from any where. I am looking to make my site to look as much attractive as I can, so please someone help me to make this kind of thing possible. I am using html and have developed as per my knowledge, but I still don't have any idea about this. I will be very eagerly waiting for the reply as I am in a hurry to make this change in my website.
    Last edited by X-quisite; 25-11-2010 at 09:36 AM.

  6. #6
    Join Date
    May 2009
    Posts
    637

    Re: How to enlarge the pictures using mouse through coding

    In order to make text blink, simply enclose the text within the <BLINK>...</BLINK> tags. <BLINK> does not have any attributes. The user can not control the rate at which the text blinks, nor can they control any other aspect of this tag. This tag is inbuilt in the html tags list and therefore the only thing that you can do is to use it without modifying any of its attributes.

Similar Threads

  1. Enlarge Photo in MAC
    By Enriqueta in forum Operating Systems
    Replies: 3
    Last Post: 19-11-2009, 02:20 AM
  2. Enlarge the rows of a diagram
    By Sandy22 in forum Software Development
    Replies: 4
    Last Post: 23-10-2009, 04:49 PM
  3. How to enlarge JPEG images ?
    By Ebenezer in forum Windows Software
    Replies: 3
    Last Post: 22-04-2009, 12:47 PM
  4. To Enlarge Thumbnail Images
    By FlashX in forum Tips & Tweaks
    Replies: 2
    Last Post: 20-03-2009, 02:48 PM
  5. How can i enlarge my system partition?
    By Protoplasm in forum Tips & Tweaks
    Replies: 3
    Last Post: 18-10-2008, 03:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,313,509.76447 seconds with 17 queries