A little HTML help
Post Reply
Quote
Re: A little HTML help
Posted by SnarkSephiroth on Tue Jun 21st at 6:51am 2005


Some images in this post have been automatically down-sized, click on them to view the full sized versions:

Some images in this post have been automatically down-sized, click on them to view the full sized versions:

Some images in this post have been automatically down-sized, click on them to view the full sized versions:

I've decided that I wanted to design and create my own website. I was sick of all the templated websites that everyone has. I decided to create my own. My problem is this. I have this image that I am using for the background of the website. I designed it in PSP 8 (although not much of a design).

Please don't comment on the design, layout, or anything else you might be thinking. I just would like answers to my problem please.

My problem is this. I want the links on my not so uniformed nav bar, to go fuzzy when I put my cursor on them. I have already achieved the exact effect I wanted with a java script. Here is an example of what I am talking about.

Heres before :

image

Heres after :

image

In my HTML editor that I use, ( 1st Page 2000 ) I used a java script to achieve exactly what I wanted. But It was only with the smaller images, not the big picture. So I guess my question is how do I implement this effect into the bigger picture?

BTW, heres the code for the script. I doubt it will work if you load it up in an editor because you don't have the images. :

<!-- Rollover Image Script - Place within <head> tag -->
<script language="JavaScript" type="text/javascript">
<!-- Hide from older browsers
function SwitchImg()
{ //start
var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
store
= SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
(store.indexOf('document.all[')==0 && document.all==null))
store
= 'document'+store.substring(store.lastIndexOf('.'),store.length);
obj
= eval(store);
if (obj != null) {
switcher
[keep++] = obj;
switcher
[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
obj
.src = SwitchImg.arguments[rem+2];
} }
document
.Data = switcher;
} //end

function RestoreImg()
{ //start
if (document.Data != null)
for (var rem=0; rem<(document.Data.length-1); rem+=2)
document
.Data[rem].src=document.Data[rem+1];
} //end

// end hiding contents -->
</script>

<a href="links.html" onMouseOut="RestoreImg()" onMouseOver="SwitchImg('document.linksthree','document.linksthree','linkstwo.jpg')"><img src="linksone.jpg" name="linksthree" width="98" height="34" alt="Links" border="0"></a>

Thank you for reading my post.





Quote
Re: A little HTML help
Posted by Leperous on Tue Jun 21st at 9:11am 2005


That's quite an excessive function for what you want to do- you'd be better off using getElementById since all this script seems to be doing is updating the image .src (http://www.filecloud.com use a cunning method of using background-images for everything, and shifting them), but aaanyway you'll survive with that

Although, you haven't actually said what you want doing with the 'big' image- I presume you want her image to be swapped too?





Quote
Re: A little HTML help
Posted by NonStopableForce on Tue Jun 21st at 5:04pm 2005


If your going to just want to blur the images, you can just do it in photoshop, and then just use the mousover image swap thing, or yuo can use style sheets on links, and put

<!--
a:hover {
filter: Blur(Add=?, Direction=?, Strength=?);
}
-->

Not sure if it works in Firefox...

-NSF




Quote
Re: A little HTML help
Posted by SnarkSephiroth on Tue Jun 21st at 5:30pm 2005


? quoting Leperous
That's quite an excessive function for what you want to do- you'd be better off using getElementById since all this script seems to be doing is updating the image .src (http://www.filecloud.com use a cunning method of using background-images for everything, and shifting them), but aaanyway you'll survive with that

Although, you haven't actually said what you want doing with the 'big' image- I presume you want her image to be swapped too?

Please bare with me, because I am very new to this (This is my first). What I want is to have each link on that page blur out like in the Link picture. I just dont know how to do it. I have the code on how to make them links, but I don't know how to make that effect while doing the same thing.

? quoting NonStopableForce
If your going to just want to blur the images, you can just do it in photoshop, and then just use the mousover image swap thing, or yuo can use style sheets on links, and put

<!--
a:hover {
filter: Blur(Add=?, Direction=?, Strength=?);
}
-->

Not sure if it works in Firefox...

-NSF

I already have all the images blured. I just need to implement it into the main picture (the one with Elisha). I want those links to blur when ever I move my mouse over them, with the effect I created. Make any sense? I hope it does, because I am having a hard time explaning. Thanks guys. Hope you can still help.






Post Reply