Note that there are some explanatory texts on larger screens.

plurals
  1. POChange Image Size with Javascript (replicate)
    primarykey
    data
    text
    <p>Okay so i have been looking at this for over a week and can not figure it out. Basically here is an example of the end result i posted earlier:</p> <p><a href="https://stackoverflow.com/questions/16405792/change-image-size-on-javascript-event">Previous Stack Overflow Post</a></p> <p>Their suggestions did not work. The javascript is changing the header css when you click on the buttons to the top right. Here is a Demo: <a href="http://yakko.cs.wmich.edu/~brain/SAS/" rel="nofollow noreferrer">DEMO of JAVASCRIPT CHANGE</a></p> <p>I'm Trying to duplicate this action with the image, but i however do not know javascript that well and am not too sure what i am reading when i look at the javascript file. I either would like someone to help me read this javascript so i can edit it myself or help me find a solution.</p> <p>Here is the Javascript: <a href="http://pastebin.com/wauW66ZS" rel="nofollow noreferrer">Script.JS</a></p> <p>Here is the relevant HTML that i have done so far: </p> <pre><code>body &gt; &lt;div id="gspinner" class="spinner"&gt;&lt;/div&gt; &lt;div id="glob"&gt; &lt;header&gt; &lt;div class="inner"&gt; &lt;a href="#!/home"&gt;&lt;h5&gt;&lt;img src="images/logo_large.png" /&gt;&lt;/h5&gt;&lt;/a&gt; &lt;!--&lt;a href="#!/home"&gt;&lt;img src="logo-large.png" id="img- logo" alt="" /&gt;&lt;/a&gt; &lt;!--&lt;a href="#!/home"&gt;&lt;/&gt;&lt;/a&gt;--&gt; &lt;nav&gt; &lt;ul&gt; &lt;li class="li-2"&gt;&lt;a href="#!/about"&gt;&lt;span class="lbl"&gt;About Us&lt;/span&gt;&lt;span class="ico -def"&gt;&lt;/span&gt;&lt;span class="ico -hvr"&gt;&lt;/span&gt;&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#!/history"&gt;History&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#!/mission"&gt;Mission Statement&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#!/solutions"&gt;Solutions&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#!/distribution"&gt;Distribution Area&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#!/logo"&gt;SAS Logo&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li class="li-1"&gt;&lt;a href="#!/events"&gt;&lt;span class="lbl"&gt;Events&lt;/span&gt;&lt;span class="ico -def"&gt;&lt;/span&gt;&lt;span class="ico -hvr"&gt;&lt;/span&gt;&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#!/tradeshow"&gt;Trade Show&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#!/awesomeachievers"&gt;Awesome Achievers&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#!/whatshappening"&gt;What's Happening&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;&lt;/li&gt; &lt;li class="li-3"&gt;&lt;a href="#!/technology"&gt;&lt;span class="lbl"&gt;Technology&lt;/span&gt;&lt;span class="ico -def"&gt;&lt;/span&gt;&lt;span class="ico -hvr"&gt;&lt;/span&gt;&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#!/nexgen"&gt;NexGen&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#!/synergy"&gt;Synergy&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#!/edi"&gt;EDI&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li class="li-4"&gt;&lt;a href="#!/marketing"&gt;&lt;span class="lbl"&gt;Marketing&lt;/span&gt;&lt;span class="ico -def"&gt;&lt;/span&gt;&lt;span class="ico -hvr"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li class="li-5"&gt;&lt;a href="#!/sales"&gt;&lt;span class="lbl"&gt;Sales&lt;/span&gt;&lt;span class="ico -def"&gt;&lt;/span&gt;&lt;span class="ico -hvr"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li class="li-6"&gt;&lt;a href="#!/mail"&gt;&lt;span class="lbl"&gt;Employment&lt;/span&gt;&lt;span class="ico -def"&gt;&lt;/span&gt;&lt;span class="ico -hvr"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; &lt;/div&gt; &lt;/header&gt; </code></pre> <p>And here is the CSS: <a href="http://pastebin.com/FEqsVFpJ" rel="nofollow noreferrer">Style.css</a></p> <p>ANY help would be greatly appreciated and will get "points" for it, i have been working on this for over a week with no help, but i have decided i should reach out for help. </p> <p>THANKS!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload