Fitness.com
Advertisement
Go Back   Sports Forum > Community > Graphics > General Photoshop Board

General Photoshop Board

Topics cover anything to do with Photoshop outside of those forums below.


» Current Poll
Best 5 club teams in history of Football:
Liverpool 1977-1978 - 100.00%
1 Vote
Real Madrid 1956-1960 - 0%
0 Votes
Juventus 1985 - 0%
0 Votes
Milan 1989-1990 - 100.00%
1 Vote
Ajax 1971-1973 - 0%
0 Votes
Santos 1962-1963 - 0%
0 Votes
Torinho 1940's - 100.00%
1 Vote
Ajax 1995 - 0%
0 Votes
Flamengo 1981 - 100.00%
1 Vote
Benfica 1961-1962 - 100.00%
1 Vote
Total Votes: 1
You may not vote on this poll.
» Stats
Members: 48,616
Threads: 84,986
Posts: 1,031,252
Top Poster: Rindalik (4,430)
Welcome to our newest member, kucoco
If you register for free, you will be able to post threads, vote on polls and lots more. If you have problems with the registration or logging in, please contact the administrator.

Reply
 
LinkBack Thread Tools Display Modes
Old 04-11-2004, 11:40 PM   Rollover not working Post #1
p6
Junior Member
 
Join Date: Apr 2004
Posts: 2
Rep Power: 0
p6 is on a distinguished road
Default Rollover not working

hi Guys,
I tried my hand at making a couple of rollovers tests. I followed instructions from a loaned book as well as PS's help section and to cut a longish story short they worked using the explorer button within imageready but when i saved them and added them to my site (made with frontpage) and clicked preview as soon as i hovered the mouse over a script error message came up. Anyone know why this may be happening? I'm not sure if i've done something wrong in adobe or if frontpage is the problem - though i have used javascripts before successfully in frontpage. The link below shows the attempt i was trying to get to rollover. Any help needed and appreciated - thanks

http://www.imagesofbritain.com/roll.htm

ps. new poster and sorry if the above seems a bit lengthy
p6 is offline   Reply With Quote
Old 04-12-2004, 02:25 AM   Rollover not working Post #2
Senior Member
 
Join Date: Feb 2002
Posts: 356
Rep Power: 8
lindaw is on a distinguished road
Default Rollover not working

Your javascript isn't there. You have the js html code for the button but when you created the buttons in IR you should have some type of code inside <script> </script> tags. This needs to be at the top of your page under the </head> tag.
lindaw is offline   Reply With Quote
Old 04-13-2004, 01:17 AM   Rollover not working Post #3
p6
Junior Member
 
Join Date: Apr 2004
Posts: 2
Rep Power: 0
p6 is on a distinguished road
Default where is the code?

Thanks for answering and i apologize if this is sub newbie but where do i get the code from? Is it automatically created in imageready? I thought i just needed to create the buttons, add slices for each of the states and save as optimized. Obviously not quite as straighforward as i 'd hoped ;-) Hope you can help me again. mike
p6 is offline   Reply With Quote
Old 04-13-2004, 01:36 AM   Rollover not working Post #4
Senior Member
 
Join Date: Feb 2002
Posts: 356
Rep Power: 8
lindaw is on a distinguished road
Default Rollover not working

Ok I created a mock button in IR. Here is the code it created:

<!-- ImageReady Preload Script (Untitled-1) -->
<script type="text/javascript">
<!--

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImagesArray(array) {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<array.length; i+=2) {
document[array[i]].src = array[i+1];
}
}
}

function changeImages() {
changeImagesArray(changeImages.arguments);
}

function toggleImages() {
for (var i=0; i<toggleImages.arguments.length; i+=2) {
if (selected == toggleImages.arguments[i]) changeImagesArray(toggleImages.arguments[i+1]);
}
}


var selected = '';
var preloadFlag = false;
function preloadImages() {
if (document.images) {
test_01_over = newImage("images/test_01-over.gif");
preloadFlag = true;
}
}

// -->
</script>

<!-- End Preload Script -->
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="preloadImages();">
<!-- ImageReady Slices (Untitled-1) -->
<a href="#"
onmouseover="toggleImages('', new Array('test_01', 'images/test_01-over.gif')); return true;"
onmouseout="toggleImages('test_01', new Array('test_01', 'images/test_01-over.gif'), '', new Array('test_01', 'images/test_01.gif')); return true;"
onmousedown="toggleImages('', new Array('test_01', 'images/test_01-over.gif')); return true;"
onmouseup="selected='test_01'; changeImages('test_01', 'images/test_01-over.gif'); return true;">
<img name="test_01" src="images/test_01.gif" width="500" height="500" border="0" alt=""></a>
<!-- End ImageReady Slices -->
</body>

The bold items are the javascript that IR creates which controls how the button acts depending on mouseover, mousedown, etc.

Hope this helps!

You have the html rollover code listed but the top part I have in bold above. This bold area of code is the code that is missing from your page. When you created the rollover it saved an html file. This script is in the file at the top of the page before the body tag <body>. You also should have an image for each change in the rollover state.
lindaw is offline   Reply With Quote
Reply

Go Back   Sports Forum > Community > Graphics > General Photoshop Board

Bookmarks

Thread Tools
Display Modes


Similar threads to Rollover not working
Thread Thread Starter Forum Replies Last Post
3 level graphic menu -> Rollover yes or no ?
3 level graphic menu -> Rollover yes or no ?: Hi folks, i first made my menu and then...
Lioness General Photoshop Board 3 02-28-2005 03:40 PM
rollover from PS7 dead in CS?
rollover from PS7 dead in CS?: Hi, My rollovers in PS7/Imageready work...
Dondick General Photoshop Board 5 07-25-2004 09:29 AM
Placing a rollover menu into an existing webpage?
Placing a rollover menu into an existing webpage?: Yes I'm back to bug you fine folks because I'm...
ricib General Photoshop Board 8 01-28-2004 07:02 AM
Rollover efect
Rollover efect: I created a rollover efect with IR with some...
Ime General Photoshop Board 6 12-08-2003 04:14 AM
Rollover
Rollover: I created a rollover avatar 50X50 in Image Ready...
freedomtribenw General Photoshop Board 3 10-08-2003 01:33 AM

More threads of p6
Thread Date Forum Replies Last Post
Rollover not working
Rollover not working: hi Guys, I tried my hand at...
04-11-2004 General Photoshop Board 3 04-13-2004 01:36 AM

Other threads in forum General Photoshop Board
Thread Date Thread Starter Replies Last Post
Hey there!
Hey there!: Hey I'm very new to the forum and to...
08-24-2007 scarybunny 1 08-24-2007 11:40 PM
Sig Request - Ricardo Quaresma
Sig Request - Ricardo Quaresma: Is somebody able to make a Quaresma Sig for me? ...
07-02-2007 Rabid 0 07-02-2007 11:06 AM
Tips, reminders or trying something new
Tips, reminders or trying something new: Tired of switching to the menu all the time whem...
11-07-2004 JoeD 17 05-21-2007 09:14 PM
Brasil National Team
Brasil National Team: http://img296.imageshack.us/img296/8643/carlos109l...
05-24-2006 Alex 26 11-06-2006 06:39 PM
Unexpectedly quit
Unexpectedly quit: Lately I've been getting the message Photoshop...
10-11-2005 limey 2 10-11-2005 10:28 PM

» Online Users: 32
0 members and 32 guests
No Members online
Most users ever online was 2,128, 07-21-2008 at 08:27 PM.

All times are GMT +1. The time now is 02:21 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Fitness.com | Weight Loss | Training & Fitness | BodyBuilding | Chinese | Spanish | French | Germany | Italian | Friend Codes |
You are viewing Rollover not working.