Topic: want 2 change background color of a page from external site when refernced within a frame (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=22505" title="Pages that link to Topic: want 2 change background color of a page from external site when refernced within a frame (Page 1 of 1)" rel="nofollow" >Topic: want 2 change background color of a page from external site when refernced within a frame <span class="small">(Page 1 of 1)</span>\

 
paritycheck
Bipolar (III) Inmate

From:
Insane since: Mar 2004

IP logged posted posted 07-10-2004 06:29 Edit Quote

I have a simple site with a basic fraeset & 2 horizontal frames on top and bottom. The top frae holds a page with links to external sites and pages on other sites which open in the bottom frame. I was wondering that whether it be possible to click on a link in the top frame thus opening a page in the bottom frame with the background color of that page changed according to my liking and how it can be done.. I'd really like any suggestions!

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

IP logged posted posted 07-10-2004 08:56 Edit Quote

paritycheck: Hello,
nope it's not possible to do a script that will alter a page that is not on the same domain as the script/page. If both the page with the script and the one you want to alter are on the same domain, you simply have to preffix you JavaScript statements with a reference to the frame you want them to be executed in. For that, you must use the window object and its properties like parent, top, frames, ...

Hope that helps



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu