|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Code Help
The best way to accomplish this is to use JQuery to select the image, make it smaller, then redirect the window to the page you want. If you haven't heard of JQuery, it's basically a library and set of utilities that sits on top of stock JS to accomplish many common patterns in Javascript. It is widely used in the web development industry and allows you to avoid using a lot of boilerplate code and makes more complex animation and AJAX trivial. Here's a link to the API docs.
From what it sounds like, you have a large image that you want to shrink with animation and then redirect the browser to another page. Without seeing your code exactly or knowing your specific use case, it is difficult to provide a lot of help, but I'll try. It would be helpful if you uploaded it. Use the Code:
.click() Code:
.animate() Code:
window.open("URL")
Code:
window.location.href("URL")
I hope that answers your question, but again, it's tough to give specific feedback without the code you already have. Good luck with your website! |
|
#2
|
|||
|
|||
|
Re: Code Help
Code:
<!doctype=html> <html> <head> <title>C.I.S. Robotics</title> <link href="cis.css" rel="stylesheet" type="text/css" /> </head> <link rel="shortcut icon" href="favicon.ico" /> <script src="cis.js"></script> </head> <body> <div id=index> <img src="cislargelogo.png" width="1020" height="905" alt="Planets" usemap="#indexmap"> <map name="indexmap"> <area shape="poly" coords="274,36,738,36,649,189,364,189" href="media.html" alt="Media"> <area shape="poly" coords="747,44,973,435,798,436,658,196" href="offseason.html" alt="Offseason"> <area shape="poly" coords="795,447,975,447,748,839,658,686" href="outreach.html" alt="Outreach"> <area shape="poly" coords="367,691,648,691,742,849,273,849" href="competition.html" alt="Competition"> <area shape="poly" coords="227,451,360,682,267,838,44,451" href="leadership.html" alt="Leadership"> <area shape="poly" coords="39,441,221,441,358,201,267,47" href="awards.html" alt="Awards"> <area shape="poly" coords="364,189,649,189,658,196,798,436,795,447,658,686,648,691,367,691,360,682,227,451,221,441,358,201" href="home.html" alt="Home"> </map> </div> </body> </html> The only issue that I can see with that is wierd reloads that defeat the purpose of it...or should I just combine my whole site into one page, and have that change states on it? Last edited by Akolbi : 22-04-2014 at 23:30. |
|
#3
|
||||
|
||||
|
Re: Code Help
I'm getting the idea that you want the hexagon map to shrink and a loading animation to happen. Then once the content is loaded, expand and have content in it?
If so it's called a page loading effect. Codrops just did a tutorial on them with some great examples. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|