Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 12-25-2003, 11:09 AM Help with code...
Novice Talker

Posts: 9
Location: Chennai, India
Trades: 0
I have a small question which I hope you can clear. I have a page with content, and I have another page with DHTML written (it is a scroller). I want to hyperlink the DHTML page from the first one in such a way that : the link should open a new window of size 170 * 140 with the DHTML scroller. Can you please help me? I seem to have forgotten the code...

Thank you for anyone who helps in advance!
__________________
There are only three kinds of people in this world : those who can count and those who cannot!

My site:
Please login or register to view this content. Registration is FREE
Please sign the guestbook!!
techblues is offline
Reply With Quote
View Public Profile Visit techblues's homepage!
 
 
Register now for full access!
Old 12-25-2003, 04:28 PM
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
Quote:
put this in the head..

<script language="javascript" type="text/javascript">
<!--
/************************************************** **
Author: Eric King
Url: http://redrival.com/eak/index.shtml
This script is free to use as long as this info is left in
Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
************************************************** **/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math .floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(scr een.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=no,menubar=no,too lbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>



then

<a href="dhtmlscroller.html" onclick="NewWindow(this.href,'dhtml','170','140',' yes','center');return false" onfocus="this.blur()">YourLinkText</a>
i was too lazy to write my own.. so i nicked it from dynamicdrive.com

incase u want further modifications here is the page..

http://www.dynamicdrive.com/dynamicindex8/popwin.htm

enjoy
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
Old 12-26-2003, 01:02 AM
Novice Talker

Posts: 9
Location: Chennai, India
Trades: 0
Thanks for the help....I too am too lazy to write my scripts, but I've done some neat ones. I just forgot how to do this...will try it and confirm whether it worked. Thanks.
__________________
There are only three kinds of people in this world : those who can count and those who cannot!

My site:
Please login or register to view this content. Registration is FREE
Please sign the guestbook!!
techblues is offline
Reply With Quote
View Public Profile Visit techblues's homepage!
 
Old 12-26-2003, 01:40 AM
Novice Talker

Posts: 9
Location: Chennai, India
Trades: 0
I'm sorry for double posting (I couldn't use edit...not allowed), but the script isn't working. On using the script, the link does open a new window, but it is as big as a normal page. It isn't resized to the given dimensions.

I think I'll explain the problem once again...

I want to add regular announcements to my site. I have a great DHTML scroller which can scroll text from bottom to top with a pause...I want this to appear in a new box of a small size when the visitor clicks on a link in another page. How do I do this? I have created a page with the DHTML alone and I have my index page...how do I make a link in the index page so that it opens up the page with the DHTML in a new window of small size (170*140)

Thanks for the help extended anyway....
__________________
There are only three kinds of people in this world : those who can count and those who cannot!

My site:
Please login or register to view this content. Registration is FREE
Please sign the guestbook!!
techblues is offline
Reply With Quote
View Public Profile Visit techblues's homepage!
 
Old 12-26-2003, 08:33 AM
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
well, when i tested this out.. i didnt get any problems..

if u can give a demo of the pages, then i can find out whether this script has any conflict with any other scripts u got..

but this does work properly ..
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
Old 12-26-2003, 11:54 PM
Novice Talker

Posts: 9
Location: Chennai, India
Trades: 0

I do think it is clashing with some other script...I have two other javascripts on the same page. I will get you the demo. Right now, I have deleted the DHTML scroller page from the server. I will upload it again in due time..

If the scripts really are clashing, can you help me set them right without losing any of them? I really have trouble with that part...
__________________
There are only three kinds of people in this world : those who can count and those who cannot!

My site:
Please login or register to view this content. Registration is FREE
Please sign the guestbook!!

Last edited by techblues; 12-26-2003 at 11:58 PM..
techblues is offline
Reply With Quote
View Public Profile Visit techblues's homepage!
 
Old 12-28-2003, 03:40 PM
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
let me ave a look at the script and then it should be pretty straightforward once the problem area/code has been identified..
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
Old 01-07-2004, 03:10 AM
milomedia's Avatar
Super Talker

Posts: 133
Location: durango, colorado
Trades: 0
Hey, i didn't notice this on any other threads, but, this page gets stretched way past the size of my browser (the tables too) I'm using safari 1.0.1 on mac OSX 10.2.8
__________________
_______________________________
Feeling down? listen to
Please login or register to view this content. Registration is FREE
milomedia is offline
Reply With Quote
View Public Profile Visit milomedia's homepage!
 
Reply     « Reply to Help with code...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26381 seconds with 12 queries