Old 10-28-2005   #1 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 5

JS Scroller

hi, ive been trying to add a javascript scroller to my iframe on my homepage at
http://www.8dayssooner.co.uk

it should be working like this
http://www.8dayssooner.co.uk/mark3b/DivScroller.htm

but currently looks like this.
http://www.8dayssooner.co.uk/mark3b/

i want to keep the same visual style and positioning as my homepage at the moment, but just with the new scroll bar.
i was just wondering if you could look at my source code and tell me where im going wrong/how to fix this. this is my first time really playing with javascript so im not too sure on what needs changing etc.
so far ive been playing with the div layers moving them around seeing if that works, but no hope yet.
i need an area like an iframe (if it isnt possible to scroll the actual iframe) where i can load my other 2 pages into, when they're clicked aswell.
currently they are loading into "content" which is the name of my
iframe.
any ideas?

cheers
Mike
8dayssooner
8dayssooner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10-28-2005   #2 (permalink)
Registered User
 
Join Date: Oct 2005
Posts: 1

Take a look here: http://squidfingers.com/code/dhtml/divscroller/ maby this is a better example. Look the code an try!

If you have problems again just sendit here and if I can I will help you!

NB! Sorry I'm not so good in english.
OXODesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10-29-2005   #3 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 5

Quote:
Originally Posted by OXODesign
Take a look here: http://squidfingers.com/code/dhtml/divscroller/ maby this is a better example. Look the code an try!

If you have problems again just sendit here and if I can I will help you!

NB! Sorry I'm not so good in english.
yeah that is where i got the scrollbar from to start with, and customised the images.
8dayssooner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10-30-2005   #4 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 5

http://www.8dayssooner.co.uk/mark3b/...&css=style.css

right, ive got the scrollbar working, but how can i set it so that when visitors goto www.8dayssooner.co.uk
it automatically goes to index.php?pagename=portfolio8ds.html&css=style.css
?

thanks
Mike
8dayssooner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10-30-2005   #5 (permalink)
code anyone?
 
scrowler's Avatar
 
Join Date: Feb 2004
Location: New Zealand
Posts: 590

Send a message via MSN to scrowler Send a message via Skype™ to scrowler
index.php:
Code:
<?php if(!$_GET["pagename"]&&!$_GET["css"]) header("Location: index.php?pagename=portfolio8ds.html&css=style.css"); ?>

<!-- the rest of your page goes here -->
therefore if someone went to your domain, index.php would register both those variables as unset, and would redirect to that url.
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10-31-2005   #6 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 5

cheers scrowler
i found a different way to do this though using the .htaccess file
thanks for the help guys, more than another forum gave me!

Mike
www.8dayssooner.co.uk
8dayssooner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10-31-2005   #7 (permalink)
code anyone?
 
scrowler's Avatar
 
Join Date: Feb 2004
Location: New Zealand
Posts: 590

Send a message via MSN to scrowler Send a message via Skype™ to scrowler
yeah, .htaccess code is often a better substitute because it means you don't have to alter any of your other pages.

for future reference here is how to do this with .htaccess: (put this in your .htaccess file in the main folder)

Code:
Options +FollowSymLinks
RewriteEngine on

RewriteRule index.php$ index.php?pagename=portfolio8ds.html&css=style.css
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10-31-2005   #8 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 5

Quote:
Originally Posted by scrowler
yeah, .htaccess code is often a better substitute because it means you don't have to alter any of your other pages.

for future reference here is how to do this with .htaccess: (put this in your .htaccess file in the main folder)

Code:
Options +FollowSymLinks
RewriteEngine on

RewriteRule index.php$ index.php?pagename=portfolio8ds.html&css=style.css
hey, i jsut tried that, and it loaded up my main page, but no other pages would load into the middle,
im currently using
Code:
DirectoryIndex index.php?pagename=portfolio8ds.html&css=style.css
8dayssooner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 09:28 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2007 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT