Results 1 to 6 of 6

Thread: Here goes- JavaScript question

  1. #1
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Here goes- JavaScript question

    Damn, this DD website is great lookin', pleasing to the eye.

    I'm new to web programming and am building my music website. I would like to add a certain feature and would welcome your help. It goes like this...

    On the left side I have rows of text. On the right side, I would have small images for each row. I would like the text leftside to alight when I 'onmouseover' the appropriate rightside image, giving it a corresponding feel. Can this be done?

    I suppose it may sound a trivial request and I could just stick with a common link either way but it would add to the flava of my site. My website is not 'googleable' and not fully functional as yet but type it in the address bar (oldskoolin.biz) if you wish.

    So, hope you like it and hope anyone out there can help me to make it all the more special. Cheers.

    Many thanks, respect to all and Dynamic Drive.

    Joe

  2. #2
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Not clear on what you mean. Could you describe what you want a little better. What you want is very possible(and not terribly difficult), but I'm not sure on how the page is layed out.

  3. #3
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Getting to grips...

    Thanks for your reply,

    Yeh, it is a bit difficult to describe, I'll try again.

    It's basically like getting a specific piece of text to change colour (like in html 'hover') when passing your mouse over an image that might be miles away, on the other side of the page. The image and text are completely apart yet obviously linked.

    So, mouse over the image on the right, the text situated on the left changes colour. I think this would work well with lists of items and accompanying images.

    I've seen something that does similar on here: Pass the mouse over written text and an image appears or there's another one for additional text appearing when you mouse over...

    For me it's more about getting that 'hover' effect on selected text, but doing this by using individual images as 'triggers'.

    Maybe these can be modified although I'm hoping there's an easier way, even with html? I think I've actually done it once but this was a mistake through poor programming or a division left out...

    Anyway, hope things are clearer and many thanks if you can help me out.

    Hope I won't have to write back and say 'I suck'. Hey Scachi, wassup..! Mind you, it's not to hard to get smoke coming out of your ears man, sympathies to the bigger league, and there's me worrying...

    Thanks again,

    Joe

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    HTML Code:
    <span id="text1">Some text</span>
    HTML Code:
    <img src="some.gif" onmouseover="document.getElementById('text1').style.color='red';" onmouseout="document.getElementById('text1').style.color='';">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Cheers...

    Hey, cheers John,

    Just looged in and saw some code. Haven't tried it yet but will a.s.a.p. Logically it looks like it will work.

    Thanks

    Joe

  6. #6
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Somersaults...

    Hi there,

    Yep, tried it and it works a treat!

    It's not being used on my website yet but will be soon. I can assure you I'm doing somersaults at the moment so thanks again John and thanks to Dynamic Drive.

    Cheers

    Joe

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •