Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Adding bottom links with click-over feature? Help please!


  • Please log in to reply
98 replies to this topic

#73 Panarchy

Panarchy

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 247 posts

Posted 09 October 2008 - 04:10 AM

Thanks.

Hahaha, I will take it out now!

Still will be a while though till it looks as cool as (just look at the click-over links): this or this.

But I especially want to learn how to do the feature that is visible when cursor goes over 'My Clipboard' on this site.

Thanks in advance for any extra help on this front,

Panarchy
  • 0

#74 Brandon W

Brandon W

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2092 posts
  • Location:Ipswich, Australia
  • Programming Language:C, Java
  • Learning:Java, C++, JavaScript

Posted 09 October 2008 - 04:34 AM

I am not that advanced but I believe there would be a function made in Javascript for that one. I don't know any Javascript so I can't help sorry.
  • 0
I've returned...

#75 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 09 October 2008 - 10:13 AM

Yes, that is correct. JavaScript would be the way to go, although watch out for accessibility issues and/or compatibility with browsers with JS disabled.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#76 Brandon W

Brandon W

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2092 posts
  • Location:Ipswich, Australia
  • Programming Language:C, Java
  • Learning:Java, C++, JavaScript

Posted 09 October 2008 - 01:30 PM

Yer I agree with Xav. I believe you use this;

<script type="text/javascript">
<---
CODE HERE
--->

I can't remember exactly but something like that. It hides it from old browsers so you have to add whatever you are going to put there accessible somewhere else on the site.
  • 0
I've returned...

#77 Panarchy

Panarchy

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 247 posts

Posted 09 October 2008 - 06:22 PM

Hmm... okay, thanks.

Oh, for the top links here, is javascript used?
  • 0

#78 Brandon W

Brandon W

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2092 posts
  • Location:Ipswich, Australia
  • Programming Language:C, Java
  • Learning:Java, C++, JavaScript

Posted 10 October 2008 - 03:54 AM

Not all of them. The "My Clipboard" one is done by adding Javascript, the rest are CSS.
  • 0
I've returned...

#79 Panarchy

Panarchy

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 247 posts

Posted 10 October 2008 - 05:39 AM

O, sorry. No I meant on this site (codecall)
  • 0

#80 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 10 October 2008 - 09:52 AM

Yer I agree with Xav. I believe you use this;

<script type="text/javascript">
<---
CODE HERE
--->

Very nearly, Brandon. Very nearly. First of all, it's only two hyphens ("--" instead of "---"). Also, the last closing tag should be interpreted as a JS comment, so it needs the //. Finally, an opening HTML comment needs an exclamation mark (!).
<script type="text/javascript">
<!--
CODE HERE
//-->
</script>

Hope this helps.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#81 Brandon W

Brandon W

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2092 posts
  • Location:Ipswich, Australia
  • Programming Language:C, Java
  • Learning:Java, C++, JavaScript

Posted 10 October 2008 - 01:43 PM

OK thanks for correcting me Xav. I haven't done any Javascript really hehe.

No they are done in CSS too.
  • 0
I've returned...

#82 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 11 October 2008 - 06:49 AM

CSS is usually preferable, with the pseudo :hover style rules.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#83 Panarchy

Panarchy

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 247 posts

Posted 14 October 2008 - 01:34 AM

Why is CSS preferable over javascript?
  • 0

#84 Brandon W

Brandon W

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2092 posts
  • Location:Ipswich, Australia
  • Programming Language:C, Java
  • Learning:Java, C++, JavaScript

Posted 14 October 2008 - 02:04 AM

It isn't. They both have different uses. Javascript is more bringing your site alive, if you know what I mean, and CSS is used for layout and design.
  • 0
I've returned...




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download