Lytebox Rollover
- Started
- Last post
- 3 Responses
- frost215
Tried googling and searchin some forums and figured i'd ask u guys for help to. Any one knows what kind of script you use for this effect on a rollover, but still use Lytebox?
I can figure out Lytebox no problem, but im not to keen on how to do that rollover image with out messing up the script.
- neverblink0
you mean something like this?
(quick and dirty)
<script>
// goes into head
function change(e ,newurl){
e = getElementById(e);
e.url = newurl;
}
</script><a href="largeimage.jpg" rel="lytebox" onmouseover= "change('img1', 'smallcolor.jpg')" onmouseout= "change('img1', 'smallgrey.jpg')"> <img id='img1' src="smallgrey.jpg" /> </a>
- frost2150
im a print person tryin to understand web. so please excuse my stupidity. the <script> part, can i just cut & paste that to my pre-existing head script? or do i need to include that in a special manner?
- silentseven0
ya just do a normal rollover either CSS sliding doors or Java. The litebox is activate with the REL tag ie rel="lytebox"