Can I set up a hyperlink to the next page of a series?

Hello,
Here's a question for the braintrust here......
I was trying to build a gallery of images that I can change
over and over. I wanted to know if it was possible to set up a
generic hyperlink in a template file that, when clicked, simply
goes to the next page found within a given directory (the directory
would contain pages with file names like 01.htm, 02.htm, etc). I
wanted to set up the link in a template file so that it just reads
"next." This way, the template file would contain generic
navigation, but when you click on the "next" link within a page, it
would understand what page you are on (say page 07.htm) and would
then go to the next page in the directory (say page 08.htm or
12.htm, whichever is next in numerical / alphabetical order). Is
this possible, and am I making sense?
Thanks for any help you all can offer, and I am more than
willing to explain more if need be.
Jake

Got the script finished. You need to ensure that each page
uses a three
digit page number like this 002.htm, and it would pay to
create a page at
000.htm and one that is one higher than the highest page with
an image.
<script language="JavaScript">
//shows your URL
var str = document.URL; //reads in the full url
var n = 7;
var q = 3;
var iLen = String(str).length;
var ThisURL = String(str).substring(iLen, iLen - n);
var ThisPage = String(ThisURL).substring(0,q);
var ThisNumber = ThisPage - 0; //This will case the string
as a number
document.write("<br>" + ThisPage);
document.write("<p>");
var PrevPage = ThisNumber - 1;
var NextPage = ThisNumber + 1;
// Now we need to change the numbers to include the leading
Zeros
if (PrevPage < 100) {
if (PrevPage < 10) {
var PrevPageDigit = "00";
}else{
var PrevPageDigit = "0";
document.write("<a href = '" + PrevPageDigit + PrevPage +
".htm'>Previous</a>");
}else{
document.write("<a href = '" + PrevPage +
".htm'>Previous</a>");
if (NextPage < 100) {
if (NextPage < 10) {
var NextPageDigit = "00";
}else{
var NextPageDigit = "0";
document.write("<a href = '" + NextPageDigit + NextPage +
".htm'>Next</a>");
}else{
document.write("<a href = '" + NextPage +
".htm'>Next</a>");
</script>
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"Paul Whitham AdobeCommunityExpert"
<[email protected]> wrote in message
news:[email protected]...
> Anything is possible. Because you can not be sure that a
visitor will come
> into the first page in the gallery. Because you are
using .htm pages you
> will need to use a javascript. I am playing around with
a script at
> present. Email me off line and I will send it to you.
>
>
>
> --
> Paul Whitham
> Certified Dreamweaver MX2004 Professional
> Adobe Community Expert - Dreamweaver
>
> Valleybiz Internet Design
> www.valleybiz.net
>
> "jakeryan90" <[email protected]> wrote
in message
> news:[email protected]...
>> Hello,
>> Here's a question for the braintrust here......
>> I was trying to build a gallery of images that I can
change over and
>> over. I
>> wanted to know if it was possible to set up a
generic hyperlink in a
>> template
>> file that, when clicked, simply goes to the next
page found within a
>> given
>> directory (the directory would contain pages with
file names like 01.htm,
>> 02.htm, etc). I wanted to set up the link in a
template file so that it
>> just
>> reads "next." This way, the template file would
contain generic
>> navigation, but
>> when you click on the "next" link within a page, it
would understand what
>> page
>> you are on (say page 07.htm) and would then go to
the next page in the
>> directory (say page 08.htm or 12.htm, whichever is
next in numerical /
>> alphabetical order). Is this possible, and am I
making sense?
>> Thanks for any help you all can offer, and I am more
than willing to
>> explain
>> more if need be.
>> Jake
>>
>
>

Similar Messages

  • Where does one set space after paragraph in the new Pages 5.0? It used to be under text in the Inspector in the previous version, but I just can't find it in this new version.

    Where does one set space after paragraph in the new Pages 5.0? It used to be under text in the Inspector in the previous version, but I just can't find it in this new version. Paragraphs seem to only be dealt with in styles, and the Formatting window for text doesn't seem to have the space after paragraph contrtol that the older Inspector had. What am I missing?

    Sorry I did this without looking:
    Side panel >Text > Style > Spacing > Turn the triangle > Before Paragraph/After Paragraph/
    This is the trouble with the Peeky Boo Contextual Interface that so many wiser heads than mine love to love.
    Peter

  • How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    Phone A = phone with information you want duplicated
    Phone B = phone that you want to copy from A
    Backup Phone A.
    Wipe Phone B using these instructions. What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support
    Phone B should be on the 'Hello' screen. Do not swipe it. Launch iTunes. Plug in Phone B.
    When iTunes asks if you want to set up as new phone or restore from backup, choose restore from backup of Phone A.
    After this setup, any changes to one phone (i.e. adding a contact, downloading an app) will have to be manually duplicated on the second phone, if that is your desire). Making changes to one phone will not affect the other after setup.

  • HT4759 I now have my daughters iPad can you please tell me why I can't set up iCloud.in settings the iCloud is greyed out also how do I change her mail account to mine?

    I now have my daughters iPad can you please tell me why I can't set up iCloud.in settings the iCloud is greyed out also how do I change her mail account to mine?

    To change your iCloud ID or password you have to go to Settings>iCloud, tap Delete Account, then sign back in with your other ID.  If you need to migrate any of your daughter's iCloud data to your account, choose Keep on My iPad when prompted, then choose Merge to upload it to the new account.  If not, choose Delete from My iPad.

  • Can i set up my ipad in the same itouch account?

    can i set my new ipad in the same account/place where i currently have my itouch set up? will this affect what i currently have in my itouch or will it see the difference when i connect my ipad and itouch? thank you

    You can use the same account and iTunes library with both - iTunes will recognise that it's a different device and you can then chose what to sync or not to sync. I use my iPad, iPhone, and iPod Touch on the same computer without any problem.

  • Can we set a default value for the container variable in BPM?

    Can we set a default value for the container variable.?
    Suppose if i have a loop step and i have given a container variable i=5 as end condition.What value will it take during its first execution?Can we set the value for container before a recieve step?

    Hi
    Define Container Variable of Type integer and Category Simple Type .Use Condtion in Loop.
    In Container Operation Step Assign value and Use Expression to
    Increase or Decrease Valus according to your operation.
    look Pattern 4 in this blog to understand Container Operation
    /people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-1

  • How can I set up iMessage to ensure the text messages people are sending me arrive both on my computer AND on my iPhone as well?

    How can I set up iMessage to ensure the text messages people are sending me arrive both on my computer AND on my iPhone as well?

    Use the same ID in Settings > Messages > Send & Receive on both devices and have people use that ID. Your iPhone number would be a good choice.

  • Can I set Acrobat X to increase the proportion of my PC's RAM it uses?

    Can I set Acrobat X to increase the proportion of my PC's RAM it uses, in order to speed up OCR processing?  Currently, it uses up to 25% of my PC's RAM when OCR processing but I would like to increase this in order to complete OCR jobs more quickly.

    Short answer: no.
    Long answer: a very few programs can use multiple cores. To do this, they have to split up and run themselves as multiple separate programs (in effect). This is only really suitable when either
    (a) two entirely different things need to be done or
    (b) a job can be split up into a lot of identical jobs, and all done at the same time.
    Photo editing and video editing are the obvious cases of (b), since they have to repeat the same stuff over each bit of a picture, and a picture could be done in slices. Making programs run on multiple cores is awesomely complicated (especially if they previously didn't) but it's no coincidence that Adobe Photoshop and (I think) Adobe Premiere Pro - being image and video editors - are out there using multiple cores.
    OCR doesn't lend itself to this terribly well (since the entire page is context), but what could work well is a program which is designed to do OCR on multiple files; it could split up and do them at the same time. Acrobat isn't that kind of high end program, however, it's meant for desktop users doing one thing at a time.

  • HT1689 Can i combine my husbands contacts and mine if we have two different itune accounts and emails and passwords?  Can both sets of contacts live on the cloud and be donwloaded to both our phones?

    Can i combine my husbands contacts and mine if we have two different itune accounts and emails and passwords?  Can both sets of contacts live on the cloud and be donwloaded to both our phones?

    Hey NON-TECHNO-WIZARD
    You can do one of two things. The first is to just export out the contacts and import them into each other’s account. If something is updated the other person will not be updated with the information. Now another options is using one Apple ID for iCloud Syncing and then you can still use individual Apple ID’s for store purchases. The article below will shed some light on how you can use the Apple ID.
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Item - Can't set value on item because the item can't get focus.  [66000-15

    hi i created one text box in purchase order form and asign the choose from list.l when i choose in edit box its show the following error-- Item - Can't set value on item because the item can't get focus
    Dim lonHeadDatasource As SAPbouiCOM.DBDataSource
    lonHeadDatasource = oOrderForm.DataSources.DBDataSources.Item("OPOR")
    oNewItem1 = oOrderForm.Items.Add("EditDS", SAPbouiCOM.BoFormItemTypes.it_EDIT)
                        Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                        Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                        Dim oCFL As SAPbouiCOM.ChooseFromList
                        oCFLs = oOrderForm.ChooseFromLists
                        oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                        oCFLCreationParams.MultiSelection = False
                        oCFLCreationParams.ObjectType = "INTORDER"
                        oCFLCreationParams.UniqueID = "CFL1"
                        oCFL = oCFLs.Add(oCFLCreationParams)
                        oItem = oOrderForm.Items.Item("4")
                        oNewItem1.Top = 95
                        oNewItem1.Height = oItem.Height
                        oNewItem1.Width = 140
                        oNewItem1.Left = 125
                        oEdit = oNewItem1.Specific
                        oEdit.DataBind.SetBound(True, "OPOR", "U_EditDS")
                        oOrderForm.Items.Item("EditDS").Specific.ChooseFromListUID = "CFL1"
                        oEdit.ChooseFromListAlias = "U_ID"
    Item events
    Try
                If pVal.BeforeAction = False Then
                    If (pVal.FormType = 142) Then
                        Select Case (pVal.ItemUID)
                            Case "EditDS"
                                Select Case (pVal.EventType)
                                    Case SAPbouiCOM.BoEventTypes.et_GOT_FOCUS
                                    Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
                                        Dim bonCflEvents As SAPbouiCOM.ChooseFromListEvent
                                        Dim bonCflList As SAPbouiCOM.ChooseFromList
                                        Dim bnnstrUID As String
                                        Dim bonDTTable As SAPbouiCOM.DataTable = Nothing
                                        bonCflEvents = pVal
                                        bnnstrUID = bonCflEvents.ChooseFromListUID
                                        bonDTTable = bonCflEvents.SelectedObjects
                                        bonCflList = oOrderForm.ChooseFromLists.Item(bnnstrUID)
                                        If pVal.BeforeAction = False Then
                                            If oOrderForm.Mode <> SAPbouiCOM.BoFormMode.fm_FIND_MODE Then
                                                If Not (bonDTTable Is Nothing) Then
                                                    If bonCflList.UniqueID = "CFL1" Then
                                                        If pVal.ItemUID = "EditDS" Then
                                                            Dim value As String = Nothing
                                                            oOrderForm.Items.Item("EditDS").Specific.value = bonDTTable.GetValue(0, 0)
                                                        End If
                                                    End If
                                                Else
                                                    lonHeadDatasource.SetValue("EditDS", lonHeadDatasource.Offset, "")
                                                End If
                                            End If
                                        End If
                                End Select
                        End Select
                    End If
                End If
            Catch ex As Exception
                SBO_Application.SetStatusBarMessage(ex.Message)
            End Try
    Thanks & Regards
    B.Narain

    Hi
    Instead of   oOrderForm.Items.Item("EditDS").Specific.value = bonDTTable.GetValue(0, 0) the following
    lonHeadDatasource.SetValue("U_EditDS", 0, bonDTTable.GetValue(0, 0))
    Regards
    Arun

  • How can I have a PDF in Full Screnn Mode without it goinging to the next page when you click?

    I'm trying to make, let's say, a mini website using a pdf that includes hyperlinks. I also want the PDF to open in FULL SCREEN Mode. For some reason, when in FULL SCREEN mode you can click on the links (works excellent), but when you click on an area of the page that is NOT a link, it forwards you to the next page in the PDF.
    I ordered the full version of Acrobat X Pro, and thought that it would work saving it out of Powerpoint (original file), but I had to disable the add-in because it just kept on crashing.
    I can't seem to find where i can control the "Do Not Forward to Next Page OnClick".
    Help!
    Thanks!

    If you just purchased Acrobat 10, you might be eligible for a free upgrade to Acrobat 11, which is suppposed to have much improved export to PPT.

  • My location bar, tool bar (file, edit, tools, bookmarks, help) disappeared and cannot be restored. I have no back button, home button etc. the top of the screen is just an empty blue bar. Internet still works if I click on a hyperlink on the main page.

    My location bar, tool bar (file, edit, tools, bookmarks, help) all disappeared and cannot be restored. I have no back button, home button etc. the top of the screen is just an empty blue bar. Internet still works if I click on a hyperlink on the main page.
    The problem started when I turned on the computer this morning. I tried to install Mozilla 4 from your website and that installed but I still have nothing on the top.

    It may be due to Firebug. Seeing as how you're a web developer, it's very possible you have this installed. The latest version, 1.7X a10, appears to cause everything you described. I downgraded to "a8" and that seems to have fixed everything.
    I also recreated a profile from scratch before trying this out, so I can't guarantee it's definitely Firebug.
    Similar issue: https://support.mozilla.com/en-US/questions/783078
    edit: If you go to the Firebug forums, you'll see this is now a known problem. http://code.google.com/p/fbug/issues/detail?id=4012 for the issue tracker.

  • Why is it that when I go to Yahoo mail, I can't delete any messages or move to the next page? Stays stuck on page 1..

    Lately, when I log on to my yahoo mail while using firefox, it no longer shows the DELETE option at the top of the email page. So, I cannot delete any emails that I might wish to delete. Also, I cannot get past the first page of my emails. Every time I click on the NEXT PAGE button, it does not move from page 1. This does not happen when I log onto yahoo mail using Internet Explorer. Please advise as to what I can do to correct this. Could it be that I'm not using the latest version of Firefox? I don't know...

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • I prepare chronologies in word, and i am trying to do the same in pages using tables and cells. But somtimes i need a cell to wrap onto the next page but I can't work out how to do it - any suggestions would be greatly appreciated

    I prepare chronologies in word, and I am trying to do the same in pages using tables and cells. But sometimes I need a cell to wrap onto the next page because the contents are bigger than the page or the space left on the page,  but I can't work out how to do it - any suggestions would be greatly appreciated

    brendanfromsydney wrote:
    What are the different opinions on why pages should not achieve this?
    As far as I know, Apple is free to choose to offer this or that feature.
    They never said that they want to clone Word or even compete with it.
    Differences between tables in both worlds are numerous.
    In Pages (or Numbers)
    - we can't sort a single column
    - we can't sort by row
    - we can't insert or remove a single cell
    - a cell can't cross pages boundaries
    If I understand well these design choices match :
    ++-+-+-+-+-+-+-+-++
    Apple Human Interface Guidelines:
    Apply the 80 Percent Solution
    During the design process, if you discover problems with your product design, you might consider applying the 80 percent solution‚ that is, designing your software to meet the needs of at least 80 percent of your users. This type of design typically favors simpler, more elegant approaches to problems.
    If you try to design for the 20 percent of your target audience who are power users, your design may not be usable by the other 80 percent of users. Even though that smaller group of power users is likely to have good ideas for features, the majority of your user base may not think in the same way. Involving a broad range of users in your design process can help you find the 80 percent solution.
    +-+-+-+-+-+-+-+-+-++
    Yvan KOENIG (VALLAURIS, France) jeudi 9 juin 2011 16:03:52
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • When I save my book in iBooksAuthor as .ibooks, it does not open on the Intro Media page.  How can I be sure it opens on the first page?

    When I save my book in iBooksAuthor as .ibooks, it does not open on the Intro Media page.  How can I be sure it opens on the first page?

    hello suffaman46, please refer to the documentation provided by yahoo for this issue: http://help.yahoo.com/kb/index?locale=en_US&y=PROD_ACCT&page=content&id=SLN2896

Maybe you are looking for

  • To connect oracle database with ms access database

    i want to connect oracle database with ms access database i have follow the following steps 1. create ms access database. 2. create system dsn. 3. make change in listener.ora. 4. make change in hs folder. 5.change the tnsname.ora. 6. lsnrctl stop and

  • Can I send a PDF with the email notification?

    I paid for the $0.99 basic subscription to try out FormsCentral since there is no free trial.  My organization would like to have the completed PDFs included in the Notifications, and I can't seem to find a way to do that.  Is this possible?

  • Adding Digital Signature in Form 16

    Experts, I want to apply note 1168740 to add digital signature to form 16 . Can anybody tell me how i can get credentials and the corresponding public key. links provided there i.e  http://help.sap.com/saphelp_nw70/helpdata/en/db/ aafb211ead420faeeaa

  • Hiding the '+' sign in cells

    Hi, can anyone tell me how to hide the annoying Plus signs that appear in Pages table cells when you put data in them? Apart from making the information impossible to read, I can't see much use for them - what are they actually for? Thanks, The Truss

  • Multiple Hierarchies from Single Dimension Table in OBIEE-11g?

    Is it possible to have Multiple Hierarchies from Single Dimension Table in OBIEE-11g? Like 1)Year-Qtr-Month-Weeks 2)Year-Month-Days