![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jan 2017
Posts: 312
|
Help with some code
This one should be quite simple but i'm struggling to get it right. I need a button with an input to take a number and store it into a domain. Like the ccbill thing you see where you put your number in and it will replace:
whateverdomain.com/xxxxxxalidland to whateverdomain.com/123456alidland Ive tried javascript getElementByID but as i'm storing the button input as a variable it always comes up wrong I keep getting value="whatever" replacing the whole domain I know I could use php to echo a variable into the code but i'm not sure if this can be implemented into a wordpress page can it? Would I have to build a plugin? Any help would be appreciated |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jan 2017
Posts: 312
|
Code:
<p>So this would be the paragraph and<span id="your_paragraph">THIS</span>is the word to be changed</p> INPUT HERE: <input type="text" id="theText" /> <input type="button" id="btn" value="Update" /> <script> var span = document.getElementById('your_paragraph'); var btn = document.getElementById('btn'); var txt = document.getElementById('theText'); btn.onclick = function(){ span.textContent = txt.value; }; </script> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,057
|
Quote:
.
__________________
All cookies cleared! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jan 2017
Posts: 312
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
What is the purpose? Hide the affiliate links?
Googlebot has been proven to read and execute JavaScript now -- if that is the purpose it is a waste of time. This may work for inserting php code -- not an endorsement -- use at your own risk. https://adinserter.pro/about |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Jan 2017
Posts: 312
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Industry Role:
Join Date: Jan 2009
Posts: 452
|
Quote:
Is that true ? Ive often wondered Sorry off topic i know |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
Thats what I have read at the big SEO sites -- they did tests.
My old JS 'you better have my cookie' script was detected by Google and all of those pages ended up delisted (I think so) a couple of years ago when this news was disclosed. Harder to run googlebot in circles these days. Time to develop anti-googlebot warfare and lots of cheap new gTLD domains on cloud VPS servers that will have new ips. Today most big hosts are multinational with multi IP 'A - B' blocks -- problem is the AS blocks (ASN) are assigned to the Hosting Co. So does Google check AS blocks now? IDK. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() |
|||||||
|
|||||||
Bookmarks |
Tags |
variable, input, button, domain, code, replacing, wrong, value=whatever, build, plugin, appreciated, page, wordpress, echo, php, implemented, store, struggling, simple, ccbill, javascript, getelementbyid, replace, storing |