# RJS visual effect

**URL:** <https://www.ruby-forum.com/t/rjs-visual-effect/114032>\
**Category:** Rails\
**Created:** [September 7, 2007, 7:41am UTC](https://www.ruby-forum.com/t/rjs-visual-effect/114032 "2007-09-07T07:41:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![advait](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@advait](https://www.ruby-forum.com/u/advait)\
**Post date:** [September 7, 2007, 7:41am UTC](https://www.ruby-forum.com/t/rjs-visual-effect/114032/1 "2007-09-07T07:41:01Z")

</div>

Hello,

How do i create a highlighting visual effect using rjs. Actually I have  
to highlight the list which I am displaying by clicking an image.

show.rhtml  
…

\<%= link\_to\_remote(image\_tag("/images/pictures/" “.jpeg”,  
:size=\>“90x100”),  
:url =\> {:action =\>‘imag1’},  
:update =\> ‘one’%\>

When I click this image link it should highlight the contents it is  
displaying.

I have made use of an adb.rjs and placed the code

" page[:one].visual\_effect :highlight, :duration =\>10 "

---

<div class="post-metadata">

**Author:** ![advait](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@advait](https://www.ruby-forum.com/u/advait)\
**Post date:** [September 11, 2007, 5:58am UTC](https://www.ruby-forum.com/t/rjs-visual-effect/114032/2 "2007-09-11T05:58:01Z")

</div>

Cache22 wrote:

> … and then what happens…
> 
> On Sep 6, 11:41 pm, Advait B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Advait

I didn’t understand when you say " and then what happens ", What more  
is required else should I attach my source code.

Thank You

---

<div class="post-metadata">

**Author:** ![advait](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@advait](https://www.ruby-forum.com/u/advait)\
**Post date:** [September 7, 2007, 7:58am UTC](https://www.ruby-forum.com/t/rjs-visual-effect/114032/3 "2007-09-07T07:58:59Z")

</div>

… and then what happens…

On Sep 6, 11:41 pm, Advait B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
