HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 16th, 2000, 05:31 AM
chasidar chasidar is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 4 chasidar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i have a framset with 3 frame src. i have a button in my upper frame and i need to onclick have it change an image in the lower frame. i keep getting an error object expected.
this is my code. please help.
var pics=new Array("art.jpg","babybirds.jpg","emily2.jpg")
var thisPic=0
function loadPicture() {
parent.lower.location.href ="lower.htm"; {
if(parent.lower.document.images){
if (parent.lower.document.tmuna.complete){
thisPic++
if (thisPic==3){
thisPic=0
}
parent.lower.document.src=pics[thisPic]
}
setTimeout("cycle()", 3*1000)
}
}
}

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > changing picture in a frame by onclick button in another frame


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway