Unregistered Avatar

Reply

A question...


 
LinkBack Thread Tools Display Modes

  #1 (permalink)  

Old 01-23-2005, 07:11 PM

A question...

I guess its coding.. well Im not sure, it might be graphics... :S

http://www.coastlinetheband.com/core.asp

on that site, when you go to the boxes, you know how white background becomes more visible? How did you do that sicloan?
__________________
My Deviant

Ntrik_ is offline custom Title

Ntrik_'s Avatar

Join Date: May 2004

Location: Street

Posts: 891

Send a message via AIM to Ntrik_

  #2 (permalink)  

Old 01-23-2005, 07:34 PM

That's javascript... the function is in the source:
HTML Code:
<script type="text/javascript">
//<![CDATA[
function lightup(imageobject, opacity){
if (navigator.appName.indexOf("Netscape")!=-1&&parseInt(navigator.appVersion)>=5)
imageobject.style.MozOpacity=opacity/100
else if (navigator.appName.indexOf("Microsoft")!=-1&&parseInt(navigator.appVersion)>=4)
imageobject.filters.alpha.opacity=opacity
}
//]]>
</script>

Last edited by missionsix : 01-23-2005 at 07:42 PM. Reason: html code...

mind-spore is offline registered.

mind-spore's Avatar

Join Date: Dec 2004

Posts: 27

  #3 (permalink)  

Old 01-23-2005, 07:37 PM

its a css / javascript trick, actually it would be purely css but IE doesnt like it, and thats where the javascript comes in.

HTML Code:
<script type="text/javascript">
//<![CDATA[
function lightup(imageobject, opacity){
if (navigator.appName.indexOf("Netscape")!=-1&&parseInt(navigator.appVersion)>=5)
imageobject.style.MozOpacity=opacity/100
else if (navigator.appName.indexOf("Microsoft")!=-1&&parseInt(navigator.appVersion)>=4)
imageobject.filters.alpha.opacity=opacity
}
//]]>
</script>
HTML Code:
<style type="text/css">
.calendar:hover, .calendar:active, .calendar:focus, .newswrapper:hover,.newswrapper:active, .newswrapper:focus {
opacity: .75 ;
filter: alpha(opacity=75); 
-moz-opacity: .75; 
}
</style>
Then my <div> for my calendar had a class name of calendar like this:

HTML Code:
<div class="calendar" onmouseover="lightup(this, 75)" onmouseout="lightup(this, 50)">
other stuff....
</div>
edit: i know about the code problem, i'm working on it...
edit2: LOL I FIXED IT!

missionsix is offline loves you.

missionsix's Avatar

Join Date: Feb 2004

Location: under you.

Posts: 4,784

Send a message via AIM to missionsix Send a message via MSN to missionsix

  #4 (permalink)  

Old 01-23-2005, 07:41 PM

sweet, thx sicloan
__________________
My Deviant

Ntrik_ is offline custom Title

Ntrik_'s Avatar

Join Date: May 2004

Location: Street

Posts: 891

Send a message via AIM to Ntrik_

  #5 (permalink)  

Old 01-23-2005, 07:45 PM

err, actually i forgot 1 more minor css part, which sets the opacity to 50 before you hover.

HTML Code:
.calendar {
background-color: transparent;
opacity: .5;
filter: alpha(opacity=50); 
-moz-opacity: .5; 
}

missionsix is offline loves you.

missionsix's Avatar

Join Date: Feb 2004

Location: under you.

Posts: 4,784

Send a message via AIM to missionsix Send a message via MSN to missionsix
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question? Doctor Discussion Lounge 5 11-27-2005 04:47 PM
Question About DN Luz Discussion Lounge 0 04-16-2005 05:21 PM
Question Fluffy_monkey The VOID! 4 04-06-2005 10:42 PM
question that might not belong here ╬Σ∩0 Digital Art Showcase 5 07-19-2004 02:23 AM
question on deviant art UAGFX Discussion Lounge 5 06-27-2004 03:43 PM


All times are GMT -7. The time now is 10:14 PM.