Hello
I'm trying to make a website; and I need some help, because I'm not a script-maker myself. It's not because I'm lazy; I just haven't found the right material to help me learn it yet - so I just can't seem to understand it proberly. I use hours and hours trying all kinds of things relating to scripting, etc. But sometimes I just really need help.
I found this script on dynamicdrive.com
It works great in IE, but it won't work in firefox. (There's no highlight)
<HEAD>
<SCRIPT language="JavaScript1.2">
//Highlight image script- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use
function makevisible(cur,which){
strength=(which==0)? 1 : 0.2
if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*100
}
Can anyone see problems with this script, that should cause trouble??
I have an other script in the head aswell (Maybe they conflict?)
<SCRIPT type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="/MENU/imgbubbles/imgbubbles.css">
<STYLE type=text/css>
/****BUBBLE*****/
/*The first*/
#orbs li{
width: 120px; /*width of image container. Should be wider than contained images (before bubbling) */
height:115px; /*height of image container. Should be taller than contained images (before bubbling) */
}
#orbs li img{
width: 105px; /*width of each image before bubbling*/
height: 110px; /*height of each image*/
}
/*The secound*/
#orbs_2 li{
width: 140px; /*width of image container. Should be wider than contained images (before bubbling) */
height:110px; /*height of image container. Should be taller than contained images (before bubbling) */
}
#orbs_2 li img{
width: 130px; /*width of each image before bubbling*/
height: 100px; /*height of each image*/
}
</STYLE>
</SCRIPT>
I've tried it, and it allmost works
The hightlight part only works after I've put the mouse over the picture.. and I would like it to be highlighted from the start..
I'll look at it a bit to see, if I can figure it out - but if you have a solution, you are very welcome to tell
Bookmarks