I am trying to put some code together that will split a screen into 3 parts, I've borrowed code from a bookmarklet that splits it into 2 frames after getting the URL's from the user.
I've gotten the code to ask for the 3rd frame URL but it won't fill the frame up with the website. The first code listed is the original code:
Here is the code I've worked on:Code:javascript:ABC=location.href;DEF=prompt('Choose%20File%201',ABC); GHI=prompt('Choose%20File%202',DEF);if(L3f7&&R1Gh7){Fr4Q='<frameset%20rows=\'*,*\'>\n<frame%20src=\''+L3f7+'\'/>';Fr4Q+='<frame%20src=\''+R1Gh7+'\'/>\n';Fr4Q+='</frameset>';with(document){write(Fr4Q);void(close())}}else{void(null)}
Now the problem so far is when I try to put in some code to declare the frame src for the 3rd frame the whole thing won't work (no prompts appear) Same thing if I try to rename Fr4Q and Fr4Q+. Not being very good with javascript is hurting my ability to debug this properly, any help would be greatly appreciated for I need this for a work project.Code:javascript:ABC=location.href;DEF=prompt('Choose%20File%201',ABC);GHI=prompt('Choose%20File%202',DEF);JKL=prompt('Choose%20File%203',GHI);if(DEF&&GHI){Fr4Q='<frameset%20rows=\'33%,33%,33%\'>\n<frame%20src=\''+DEF+'\'/>';Fr4Q+='<frame%20src=\''+GHI+'\'/>\n';Fr4Q+='</frameset>';with(document){write(Fr4Q);void(close())}}else{void(null)}
Thanks
Bob



Reply With Quote

Bookmarks